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

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

Issue 1425593007: Separate display item clients for negative and normal/positive z-order children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Struct DisplayItemClient Created 5 years, 1 month 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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index ded24777fc93352efa5270495cbf6fd8340df234..5c51a6d3dde2368f24f0bcc85884d925625c95db 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2716,6 +2716,26 @@ void PaintLayer::clearNeedsRepaintRecursively()
m_needsRepaint = false;
}
+static String debugNameForNegativeZOrderChildrenDisplayItemClient(const PaintLayer& layer)
+{
+ return layer.debugName() + " negative z-order children";
+}
+
+static String debugNameForNormalAndPositiveZOrderChildrenDisplayItemClient(const PaintLayer& layer)
+{
+ return layer.debugName() + " normal and positive z-order children";
+}
+
+DisplayItemClientWrapper PaintLayer::displayItemClientForNegativeZOrderChildren() const
+{
+ return DisplayItemClientWrapper(*this, toSubDisplayItemClient(this, 1), debugNameForNegativeZOrderChildrenDisplayItemClient);
+}
+
+DisplayItemClientWrapper PaintLayer::displayItemClientForNormalAndPositiveZOrderChildren() const
+{
+ return DisplayItemClientWrapper(*this, toSubDisplayItemClient(this, 2), debugNameForNormalAndPositiveZOrderChildrenDisplayItemClient);
+}
+
DisableCompositingQueryAsserts::DisableCompositingQueryAsserts()
: m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { }
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698