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

Unified Diff: trunk/Source/core/rendering/compositing/CompositedLayerMapping.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/core/rendering/compositing/CompositedLayerMapping.h
===================================================================
--- trunk/Source/core/rendering/compositing/CompositedLayerMapping.h (revision 168316)
+++ trunk/Source/core/rendering/compositing/CompositedLayerMapping.h (working copy)
@@ -184,6 +184,7 @@
#endif
LayoutRect contentsBox() const;
+ IntRect backgroundBox() const;
GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizontalScrollbar.get(); }
GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVerticalScrollbar.get(); }
@@ -222,7 +223,7 @@
void updateScrollParent(RenderLayer*);
void updateClipParent(RenderLayer*);
bool updateSquashingLayers(bool needsSquashingLayers);
- void updateDrawsContent();
+ void updateDrawsContent(bool isSimpleContainer);
void updateChildrenTransform();
void registerScrollingLayers();
@@ -249,17 +250,20 @@
bool isMainFrameRenderViewLayer() const;
+ bool paintsBoxDecorations() const;
bool paintsChildren() const;
+ // Returns true if this compositing layer has no visible content.
+ bool isSimpleContainerCompositingLayer() const;
// Returns true if this layer has content that needs to be rendered by painting into the backing store.
- bool containsPaintedContent() const;
+ bool containsPaintedContent(bool isSimpleContainer) const;
// Returns true if the RenderLayer just contains an image that we can composite directly.
bool isDirectlyCompositedImage() const;
void updateImageContents();
Color rendererBackgroundColor() const;
- void updateBackgroundColor();
- void updateContentsRect();
+ void updateBackgroundColor(bool isSimpleContainer);
+ void updateContentsRect(bool isSimpleContainer);
void updateCompositingReasons();

Powered by Google App Engine
This is Rietveld 408576698