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

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

Issue 2196583002: Paint local background colors onto foreground layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename PaintLayer::shouldPaintBackgroundOntoForeground to PaintLayer::shouldPaintBackgroundOntoScro… Created 4 years, 4 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: 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 469fe7891a25ab120649fccc0ca32b4ebda4c893..1c6da37f1cf821ecbdd397f17bdc9a070542c332 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -247,6 +247,13 @@ public:
PaintLayerReflectionInfo* reflectionInfo() { return m_rareData ? m_rareData->reflectionInfo.get() : nullptr; }
const PaintLayerReflectionInfo* reflectionInfo() const { return const_cast<PaintLayer*>(this)->reflectionInfo(); }
+ // Returns true for layers with scrollable overflow which have a background
+ // that can be painted into the composited scrolling contents layer (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 shouldPaintBackgroundOntoScrollingContentsLayer() const;
chrishtr 2016/08/05 00:40:08 Move this method to CompositedLayerMapping.
flackr 2016/08/08 18:01:30 Done.
+
const PaintLayer* root() const
{
const PaintLayer* curr = this;

Powered by Google App Engine
This is Rietveld 408576698