WebCore/ChangeLog

 12010-12-22 Sheriff Bot <webkit.review.bot@gmail.com>
 2
 3 Unreviewed, rolling out r74503.
 4 http://trac.webkit.org/changeset/74503
 5 https://bugs.webkit.org/show_bug.cgi?id=51513
 6
 7 breaks chromium mac debug compile (Requested by tonyg-cr on
 8 #webkit).
 9
 10 * platform/graphics/chromium/ImageLayerChromium.cpp:
 11 (WebCore::ImageLayerChromium::updateContentsIfDirty):
 12 * platform/graphics/skia/GraphicsContext3DSkia.cpp:
 13 (WebCore::GraphicsContext3D::getImageData):
 14
1152010-12-22 Dan Bernstein <mitz@apple.com>
216
317 Reviewed by Darin Adler.

WebCore/platform/graphics/chromium/ImageLayerChromium.cpp

@@void ImageLayerChromium::updateContentsIfDirty()
156156#error "Need to implement for your platform."
157157#endif
158158
159  if (pixels) {
160  // Since this operation requires contiguous pixels, make sure there's no padding at the
161  // end of each line.
162  ASSERT(skiaBitmap->rowBytes() == SkBitmap::ComputeRowBytes(skiaConfig, skiaBitmap->width()));
163 
 159 if (pixels)
164160 updateTextureRect(pixels, bitmapSize, dirtyRect);
165  }
166161}
167162
168163}

WebCore/platform/graphics/skia/GraphicsContext3DSkia.cpp

@@bool GraphicsContext3D::getImageData(Image* image,
7878 return false;
7979 SkBitmap& skiaImageRef = *skiaImage;
8080 SkAutoLockPixels lock(skiaImageRef);
81  ASSERT(skiaImage->bytesPerPixel() == 4
82  && skiaImage->rowBytes() == SkBitmap::ComputeRowBytes(skiaImage->config(), skiaImage->width()));
 81 ASSERT(skiaImage->rowBytes() == skiaImage->width() * 4);
8382 outputVector.resize(skiaImage->rowBytes() * skiaImage->height());
8483 return packPixels(reinterpret_cast<const uint8_t*>(skiaImage->getPixels()),
8584 SourceFormatBGRA8, skiaImage->width(), skiaImage->height(), 0,

WebKit/chromium/ChangeLog

 12010-12-22 Sheriff Bot <webkit.review.bot@gmail.com>
 2
 3 Unreviewed, rolling out r74503.
 4 http://trac.webkit.org/changeset/74503
 5 https://bugs.webkit.org/show_bug.cgi?id=51513
 6
 7 breaks chromium mac debug compile (Requested by tonyg-cr on
 8 #webkit).
 9
 10 * src/GraphicsContext3DChromium.cpp:
 11 (WebCore::GraphicsContext3DInternal::paintRenderingResultsToCanvas):
 12
1132010-12-22 W. James MacLean <wjmaclean@chromium.org>
214
315 Reviewed by Kenneth Russell.

WebKit/chromium/src/GraphicsContext3DChromium.cpp

@@void GraphicsContext3DInternal::paintRenderingResultsToCanvas(CanvasRenderingCon
172172 const SkBitmap* canvasBitmap = imageBuffer->context()->platformContext()->bitmap();
173173 const SkBitmap* readbackBitmap = 0;
174174 ASSERT(canvasBitmap->config() == SkBitmap::kARGB_8888_Config);
175  ASSERT(SkBitmap::ComputeBytesPerPixel(canvasBitmap->config()) == 4);
176175 if (canvasBitmap->width() == m_impl->width() && canvasBitmap->height() == m_impl->height()) {
177176 // This is the fastest and most common case. We read back
178177 // directly into the canvas's backing store.
179  // Make sure no extra padding at line ends (e.g. a bitmap extracted subset).
180  ASSERT(readbackBitmap->rowBytes() ==
181  SkBitmap::ComputeRowBytes(readbackBitmap->config(), readbackBitmap->width()));
182178 readbackBitmap = canvasBitmap;
183179 m_resizingBitmap.reset();
184180 } else {