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

Unified Diff: trunk/Source/platform/graphics/GraphicsLayer.h

Issue 183763024: Revert 168245 "Drop background color optimization for composited..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 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: trunk/Source/platform/graphics/GraphicsLayer.h
===================================================================
--- trunk/Source/platform/graphics/GraphicsLayer.h (revision 168316)
+++ trunk/Source/platform/graphics/GraphicsLayer.h (working copy)
@@ -232,6 +232,7 @@
// Layer contents
void setContentsToImage(Image*);
void setContentsToNinePatch(Image*, const IntRect& aperture);
+ void setContentsToSolidColor(const Color&);
void setContentsToPlatformLayer(blink::WebLayer* layer) { setContentsTo(layer); }
bool hasContentsLayer() const { return m_contentsLayer; }
@@ -381,6 +382,8 @@
OwnPtr<blink::WebContentLayer> m_layer;
OwnPtr<blink::WebImageLayer> m_imageLayer;
OwnPtr<blink::WebNinePatchLayer> m_ninePatchLayer;
+ Color m_contentsSolidColor;
+ OwnPtr<blink::WebSolidColorLayer> m_solidColorLayer;
blink::WebLayer* m_contentsLayer;
// We don't have ownership of m_contentsLayer, but we do want to know if a given layer is the
// same as our current layer in setContentsTo(). Since m_contentsLayer may be deleted at this point,
« no previous file with comments | « trunk/Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | trunk/Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698