Title: [107669] trunk/Source/WebCore
- Revision
- 107669
- Author
- [email protected]
- Date
- 2012-02-13 21:57:26 -0800 (Mon, 13 Feb 2012)
Log Message
[chromium] Set opaque flag on SkBitmap in per-tile layer updater
https://bugs.webkit.org/show_bug.cgi?id=78498
Patch by Dana Jansens <[email protected]> on 2012-02-13
Reviewed by Stephen White.
No new tests.
* platform/graphics/chromium/BitmapSkPictureCanvasLayerTextureUpdater.cpp:
(WebCore::BitmapSkPictureCanvasLayerTextureUpdater::Texture::prepareRect):
* platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h:
(SkPictureCanvasLayerTextureUpdater):
(WebCore::SkPictureCanvasLayerTextureUpdater::layerIsOpaque):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107668 => 107669)
--- trunk/Source/WebCore/ChangeLog 2012-02-14 05:28:40 UTC (rev 107668)
+++ trunk/Source/WebCore/ChangeLog 2012-02-14 05:57:26 UTC (rev 107669)
@@ -1,3 +1,18 @@
+2012-02-13 Dana Jansens <[email protected]>
+
+ [chromium] Set opaque flag on SkBitmap in per-tile layer updater
+ https://bugs.webkit.org/show_bug.cgi?id=78498
+
+ Reviewed by Stephen White.
+
+ No new tests.
+
+ * platform/graphics/chromium/BitmapSkPictureCanvasLayerTextureUpdater.cpp:
+ (WebCore::BitmapSkPictureCanvasLayerTextureUpdater::Texture::prepareRect):
+ * platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h:
+ (SkPictureCanvasLayerTextureUpdater):
+ (WebCore::SkPictureCanvasLayerTextureUpdater::layerIsOpaque):
+
2012-02-13 W. James MacLean <[email protected]>
[chromium] Remove obsolete zoom animation pathway.
Modified: trunk/Source/WebCore/platform/graphics/chromium/BitmapSkPictureCanvasLayerTextureUpdater.cpp (107668 => 107669)
--- trunk/Source/WebCore/platform/graphics/chromium/BitmapSkPictureCanvasLayerTextureUpdater.cpp 2012-02-14 05:28:40 UTC (rev 107668)
+++ trunk/Source/WebCore/platform/graphics/chromium/BitmapSkPictureCanvasLayerTextureUpdater.cpp 2012-02-14 05:57:26 UTC (rev 107669)
@@ -47,6 +47,7 @@
{
m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, sourceRect.width(), sourceRect.height());
m_bitmap.allocPixels();
+ m_bitmap.setIsOpaque(m_textureUpdater->layerIsOpaque());
SkDevice device(m_bitmap);
SkCanvas canvas(&device);
textureUpdater()->paintContentsRect(&canvas, sourceRect);
Modified: trunk/Source/WebCore/platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h (107668 => 107669)
--- trunk/Source/WebCore/platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h 2012-02-14 05:28:40 UTC (rev 107668)
+++ trunk/Source/WebCore/platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h 2012-02-14 05:57:26 UTC (rev 107669)
@@ -48,13 +48,15 @@
public:
virtual ~SkPictureCanvasLayerTextureUpdater();
+ virtual void setOpaque(bool);
+
protected:
explicit SkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>);
virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tileSize, int borderTexels, float contentsScale, IntRect* resultingOpaqueRect);
void drawPicture(SkCanvas*);
- virtual void setOpaque(bool);
+ bool layerIsOpaque() const { return m_layerIsOpaque; }
private:
// Recording canvas.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes