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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.h

Issue 183833020: Re-land "Drop background color optimization for composited layers" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make Mac test bot pass Created 6 years, 9 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/core/rendering/compositing/CompositedLayerMapping.h
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.h b/Source/core/rendering/compositing/CompositedLayerMapping.h
index a616a912b3811c00f34e9df8914cb79025d94c1f..2b46e782a412a0065b35f26c1baad3c9e8f782dc 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.h
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.h
@@ -185,7 +185,6 @@ public:
#endif
LayoutRect contentsBox() const;
- IntRect backgroundBox() const;
GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizontalScrollbar.get(); }
GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVerticalScrollbar.get(); }
@@ -227,7 +226,7 @@ private:
void updateScrollParent(RenderLayer*);
void updateClipParent(RenderLayer*);
bool updateSquashingLayers(bool needsSquashingLayers);
- void updateDrawsContent(bool isSimpleContainer);
+ void updateDrawsContent();
void updateChildrenTransform();
void registerScrollingLayers();
@@ -254,20 +253,17 @@ private:
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(bool isSimpleContainer) const;
+ bool containsPaintedContent() 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(bool isSimpleContainer);
- void updateContentsRect(bool isSimpleContainer);
+ void updateBackgroundColor();
+ void updateContentsRect();
void updateCompositingReasons();

Powered by Google App Engine
This is Rietveld 408576698