Index: Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
diff --git a/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp b/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
index 7f99a19191ebe9a39eadc1db0f7276d6ee740d06..eafa32380fdf3df038cc5ae45a6ec3a50ee42f07 100644 |
--- a/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
+++ b/Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp |
@@ -45,7 +45,7 @@ using WebKit::WebTextureUpdater; |
namespace WebCore { |
-Canvas2DLayerBridge::Canvas2DLayerBridge(PassRefPtr<GraphicsContext3D> context, SkDeferredCanvas* canvas, ThreadMode threadMode) |
+Canvas2DLayerBridge::Canvas2DLayerBridge(PassRefPtr<GraphicsContext3D> context, SkDeferredCanvas* canvas, OpacityMode opacityMode, ThreadMode threadMode) |
: m_canvas(canvas) |
, m_context(context) |
, m_bytesAllocated(0) |
@@ -64,6 +64,7 @@ Canvas2DLayerBridge::Canvas2DLayerBridge(PassRefPtr<GraphicsContext3D> context, |
if (renderTarget) { |
m_layer->setTextureId(renderTarget->asTexture()->getTextureHandle()); |
} |
+ m_layer->setOpaque(opacityMode == Opaque); |
GraphicsLayerChromium::registerContentsLayer(m_layer->layer()); |
} |