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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2511893002: Paint solid color background into both scrolling contents layer and graphics layer. (Closed)
Patch Set: Add Mac rebaselines. Created 4 years 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: third_party/WebKit/Source/core/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 83a1cca989d786c251052715f5b8aa73b1116597..41b5b172576a9340a0619ceb6260876f6f83c6bb 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -501,12 +501,11 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
CompositedLayerMapping* compositedLayerMapping() const;
GraphicsLayer* graphicsLayerBacking() const;
GraphicsLayer* graphicsLayerBackingForScrolling() const;
- // Returns true for layers with scrollable overflow which have a background
- // that can be painted into the composited scrolling contents layer when it
- // exist (i.e. the background can scroll with the content). When the
- // background is also opaque this allows us to composite the scroller even on
- // low DPI as we can draw with subpixel anti-aliasing.
- bool canPaintBackgroundOntoScrollingContentsLayer() const;
+ // Returns which GraphicsLayers backgrounds should be painted into for
+ // overflow scrolling boxes. When the background can paint into the scrolling
+ // contents and is also opaque this allows us to composite the scroller even
+ // on low DPI as we can draw with subpixel anti-aliasing.
+ BackgroundPaintLocation backgroundPaintLocation() const;
// NOTE: If you are using hasCompositedLayerMapping to determine the state of
// compositing for this layer, (and not just to do bookkeeping related to the
// mapping like, say, allocating or deallocating a mapping), then you may have

Powered by Google App Engine
This is Rietveld 408576698