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

Issue 1922393002: CC Animation: Unify ElementId in Blink Compositor Worker. (Closed)

Created:
4 years, 8 months ago by loyso (OOO)
Modified:
4 years, 7 months ago
Reviewers:
Ian Vollick, ajuma
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, eae+blinkwatch, kinuko+watch, rwlbuis, krit, drott+blinkwatch_chromium.org, szager+layoutwatch_chromium.org, Justin Novosad, dglazkov+blink, Rik, jchaffraix+rendering, blink-reviews, blink-reviews-api_chromium.org, cc-bugs_chromium.org, zoltan1, blink-reviews-layout_chromium.org, jbroman, pdr+graphicswatchlist_chromium.org, Stephen Chennney, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, blink-layers+watch_chromium.org, f(malita), danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@player
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CC Animation: Unify ElementId in Blink Compositor Worker. 1) Move cc::ElementId to separate file and expose it for blink as an abstract CompositorElementId. 2) Use int (ElementId alias) instead of uint64_t in CompositorWorker so they will be unified. CompositorWorker uses int DomNodeIds anyway. BUG=510960 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Patch Set 2 : Use ElementId in serialization. #

Patch Set 3 : Rebase. Expose nextCompositorElementId function. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Remove NextElementId. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -49 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/blink/web_layer_impl.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/blink/web_layer_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A cc/trees/element_id.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M cc/trees/mutator_host_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 3 5 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CustomCompositorAnimationManager.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.h View 1 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/CompositorElementId.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutation.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 2 3 6 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayer.h View 1 chunk +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (8 generated)
loyso (OOO)
4 years, 8 months ago (2016-04-27 06:45:29 UTC) #4
ajuma
Could you say a bit more about the overall direction you're heading with this? Perhaps ...
4 years, 7 months ago (2016-04-27 22:03:42 UTC) #5
loyso (OOO)
On 2016/04/27 22:03:42, ajuma wrote: > Could you say a bit more about the overall ...
4 years, 7 months ago (2016-04-27 23:22:59 UTC) #6
ajuma
On 2016/04/27 23:22:59, loyso wrote: > On 2016/04/27 22:03:42, ajuma wrote: > > Could you ...
4 years, 7 months ago (2016-04-28 17:59:56 UTC) #8
loyso (OOO)
On 2016/04/28 17:59:56, ajuma wrote: > Using an int instead of an int64 sounds great. ...
4 years, 7 months ago (2016-04-28 23:41:28 UTC) #9
loyso (OOO)
p.s. My 3rd and final CL is in progress. Let's see what details I can ...
4 years, 7 months ago (2016-04-28 23:42:07 UTC) #10
loyso (OOO)
p.s. Moreover, think about the link highlights and programmatic scroll animator. They have WebLayer/GraphicsLayer but ...
4 years, 7 months ago (2016-04-28 23:44:48 UTC) #11
Ian Vollick
On 2016/04/28 23:44:48, loyso wrote: > p.s. Moreover, think about the link highlights and programmatic ...
4 years, 7 months ago (2016-04-29 02:14:49 UTC) #12
loyso (OOO)
On 2016/04/29 02:14:49, vollick wrote: > LinkHighlights do have an associated node though we need ...
4 years, 7 months ago (2016-05-04 02:38:47 UTC) #13
loyso (OOO)
On 2016/04/29 02:14:49, vollick wrote: > I'd also hope that we could plumb element ids ...
4 years, 7 months ago (2016-05-04 06:47:16 UTC) #14
loyso (OOO)
Unrelated, general notes: We need two maps: 1) idToPtr (element_id -> Element*) 2) ptrToId (Element* ...
4 years, 7 months ago (2016-05-04 07:07:19 UTC) #15
loyso (OOO)
Typo: Read as 'CompositorIdToElementMap::registerElement'
4 years, 7 months ago (2016-05-04 07:09:13 UTC) #16
loyso (OOO)
4 years, 7 months ago (2016-05-10 06:02:07 UTC) #21
ajuma@, vollick@ - can we land this particular CL? CC ElementAnimations,
Attach/Detach Element and ElementId are already there.
And CompositorWorker uses int DomNodeIds anyway.

Powered by Google App Engine
This is Rietveld 408576698