Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 554183004: Add an alternate paintContents method to WebContentLayerClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: opaquerecttracking: expectations Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 7b95b13fd04c684d561bf1cbb1422de6f01bf86c..d4cfec068531bfc6af789a6234b2ea02cd898210 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -112,8 +112,8 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
m_client->verifyNotPainting();
#endif
- m_opaqueRectTrackingContentLayerDelegate = adoptPtr(new OpaqueRectTrackingContentLayerDelegate(this));
- m_layer = adoptPtr(Platform::current()->compositorSupport()->createContentLayer(m_opaqueRectTrackingContentLayerDelegate.get()));
+ m_contentLayerDelegate = adoptPtr(new ContentLayerDelegate(this));
+ m_layer = adoptPtr(Platform::current()->compositorSupport()->createContentLayer(m_contentLayerDelegate.get()));
m_layer->layer()->setDrawsContent(m_drawsContent && m_contentsVisible);
m_layer->layer()->setWebLayerClient(this);
m_layer->setAutomaticallyComputeRasterScale(true);
@@ -824,7 +824,7 @@ void GraphicsLayer::setContentsOpaque(bool opaque)
{
m_contentsOpaque = opaque;
m_layer->layer()->setOpaque(m_contentsOpaque);
- m_opaqueRectTrackingContentLayerDelegate->setOpaque(m_contentsOpaque);
+ m_contentLayerDelegate->setOpaque(m_contentsOpaque);
clearContentsLayerIfUnregistered();
if (m_contentsLayer)
m_contentsLayer->setOpaque(opaque);

Powered by Google App Engine
This is Rietveld 408576698