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

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

Issue 2890953002: [SPv1] Always set a CompositorElementId on main graphics layers; use PaintLayer id. (Closed)
Patch Set: none Created 3 years, 7 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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 3c6ca36ef8bf665bf84fc2ce6d74c2fb049ff6de..e9bd7123e662fa7aa84d0b54321dc96f1b34322a 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -105,6 +105,7 @@ struct SameSizeAsPaintLayer : DisplayItemClient {
void* pointer;
LayoutRect rect;
} previous_paint_status;
+ uint64_t unique_id;
};
static_assert(sizeof(PaintLayer) == sizeof(SameSizeAsPaintLayer),
@@ -167,6 +168,8 @@ PaintLayer::PaintLayer(LayoutBoxModelObject& layout_object)
static_inline_position_(0),
static_block_position_(0),
ancestor_overflow_layer_(nullptr) {
+ static PaintLayerId paint_layer_id_counter = 0;
+ unique_id_ = ++paint_layer_id_counter;
UpdateStackingNode();
is_self_painting_layer_ = ShouldBeSelfPaintingLayer();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698