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

Unified Diff: third_party/WebKit/Source/core/animation/ElementAnimations.cpp

Issue 1921503008: Blink CompositorWorker: Use CompositorElementId and CompositorIdToElementMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@elementid
Patch Set: Vend ids via local blink nextCompositorElementId. Created 4 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/animation/ElementAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
index 1b1365022d6f33212668e0083d7f227ec7e44768..ba3fabd1c17b29c44541f59242c988b50bec03f7 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
@@ -34,8 +34,11 @@
namespace blink {
+static CompositorElementId s_nextCompositorElementId = 1;
esprehn 2016/05/10 22:46:57 You should use DOMNodeIds, why can't you allocate
loyso (OOO) 2016/05/12 05:55:39 Not every Compositor Animation subsystem has assoc
+
ElementAnimations::ElementAnimations()
- : m_animationStyleChange(false)
+ : m_compositorElementId(s_nextCompositorElementId++)
+ , m_animationStyleChange(false)
{
}

Powered by Google App Engine
This is Rietveld 408576698