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

Issue 23834010: Change WebLayer::addAnimation to transfer ownership of WebAnimation. (Closed)

Created:
7 years, 3 months ago by dshwang
Modified:
7 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, abarth-chromium, ajuma
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Change WebLayer::addAnimation to transfer ownership of WebAnimation. Introduce temporary macro, ANIMATION_OWNERSHIP_TRANSFER, to change addAnimation() in both Blink and Chromium. After Chromium is aligned to this CL, ANIMATION_OWNERSHIP_TRANSFER will be removed. BUG=290217 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160110

Patch Set 1 #

Patch Set 2 : Change GraphicsLayer and LinkHighlight to clarify ownership transfer #

Total comments: 8

Patch Set 3 : Pass ownership of WebAnimation under ANIMATION_OWNERSHIP_NOT_TRANSFER guard. #

Total comments: 2

Patch Set 4 : Avoid pointless #if check #

Patch Set 5 : Apply GraphicsLayerTest also #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -13 lines) Patch
M Source/core/platform/graphics/GraphicsLayer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/rendering/CompositedLayerMapping.cpp View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M Source/web/LinkHighlight.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/LinkHighlight.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/tests/GraphicsLayerTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebLayer.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
dshwang
It is follow-up CL of https://codereview.chromium.org/24165003/
7 years, 3 months ago (2013-09-19 19:05:02 UTC) #1
jamesr
Ian / Ali - is there any reason why this was a clone and not ...
7 years, 3 months ago (2013-09-19 23:23:33 UTC) #2
ajuma
On 2013/09/19 23:23:33, jamesr wrote: > Ian / Ali - is there any reason why ...
7 years, 3 months ago (2013-09-19 23:48:35 UTC) #3
dshwang
On 2013/09/19 23:48:35, ajuma wrote: > On 2013/09/19 23:23:33, jamesr wrote: > > Ian / ...
7 years, 3 months ago (2013-09-20 03:31:08 UTC) #4
Ian Vollick
This lgtm modulo a rebase. @jamesr: There's no longer a reason to clone given the ...
7 years, 3 months ago (2013-09-20 15:19:01 UTC) #5
dshwang
Thank you for your review. https://codereview.chromium.org/23834010/diff/6001/Source/core/rendering/RenderLayerBacking.cpp File Source/core/rendering/RenderLayerBacking.cpp (right): https://codereview.chromium.org/23834010/diff/6001/Source/core/rendering/RenderLayerBacking.cpp#newcode1717 Source/core/rendering/RenderLayerBacking.cpp:1717: if (animations.m_transformAnimation && m_graphicsLayer->addAnimation(animations.m_transformAnimation.release())) ...
7 years, 3 months ago (2013-09-20 15:22:20 UTC) #6
jamesr
https://codereview.chromium.org/23834010/diff/6001/Source/core/platform/graphics/GraphicsLayer.cpp File Source/core/platform/graphics/GraphicsLayer.cpp (right): https://codereview.chromium.org/23834010/diff/6001/Source/core/platform/graphics/GraphicsLayer.cpp#newcode980 Source/core/platform/graphics/GraphicsLayer.cpp:980: return platformLayer()->addAnimation(animation.get()); you need to leakPtr() here, right? otherwise ...
7 years, 3 months ago (2013-09-20 18:52:14 UTC) #7
dshwang
Thank you for your comment. I answered. https://codereview.chromium.org/23834010/diff/6001/Source/core/platform/graphics/GraphicsLayer.cpp File Source/core/platform/graphics/GraphicsLayer.cpp (right): https://codereview.chromium.org/23834010/diff/6001/Source/core/platform/graphics/GraphicsLayer.cpp#newcode980 Source/core/platform/graphics/GraphicsLayer.cpp:980: return platformLayer()->addAnimation(animation.get()); ...
7 years, 3 months ago (2013-09-20 19:03:57 UTC) #8
dshwang
On 2013/09/20 19:03:57, dshwang wrote: > It is because now we does pass ownership of ...
7 years, 3 months ago (2013-09-20 19:06:31 UTC) #9
jamesr
Hmm, so here the WebAnimation object itself still exists but it is neutered (i.e. the ...
7 years, 3 months ago (2013-09-23 17:53:34 UTC) #10
dshwang
On 2013/09/23 17:53:34, jamesr wrote: > Hmm, so here the WebAnimation object itself still exists ...
7 years, 3 months ago (2013-09-24 14:44:45 UTC) #11
dshwang
now this CL transfer ownership to chromium under ANIMATION_OWNERSHIP_NOT_TRANSFER guard. We use raw pointer to ...
7 years, 2 months ago (2013-10-09 16:58:45 UTC) #12
jamesr
I'm OOO without access to email until next Tuesday. I'll be happy to take a ...
7 years, 2 months ago (2013-10-10 00:43:22 UTC) #13
jamesr
https://codereview.chromium.org/23834010/diff/24001/Source/core/platform/graphics/GraphicsLayer.cpp File Source/core/platform/graphics/GraphicsLayer.cpp (right): https://codereview.chromium.org/23834010/diff/24001/Source/core/platform/graphics/GraphicsLayer.cpp#newcode1034 Source/core/platform/graphics/GraphicsLayer.cpp:1034: #if defined(ANIMATION_OWNERSHIP_NOT_TRANSFER) there's no need to test for this ...
7 years, 2 months ago (2013-10-15 21:14:04 UTC) #14
dshwang
hi, thank you for review :) https://codereview.chromium.org/23834010/diff/24001/Source/core/platform/graphics/GraphicsLayer.cpp File Source/core/platform/graphics/GraphicsLayer.cpp (right): https://codereview.chromium.org/23834010/diff/24001/Source/core/platform/graphics/GraphicsLayer.cpp#newcode1034 Source/core/platform/graphics/GraphicsLayer.cpp:1034: #if defined(ANIMATION_OWNERSHIP_NOT_TRANSFER) On ...
7 years, 2 months ago (2013-10-16 11:40:04 UTC) #15
jamesr
The behavior changes in https://codereview.chromium.org/24165003/ are guarded by the #define you'll set in the blink ...
7 years, 2 months ago (2013-10-16 15:15:16 UTC) #16
dshwang
On 2013/10/16 15:15:16, jamesr wrote: > The behavior changes in https://codereview.chromium.org/24165003/ are guarded by > ...
7 years, 2 months ago (2013-10-16 15:24:59 UTC) #17
dshwang
On 2013/10/16 15:24:59, dshwang wrote: > On 2013/10/16 15:15:16, jamesr wrote: > > The behavior ...
7 years, 2 months ago (2013-10-16 15:32:04 UTC) #18
jamesr
On 2013/10/16 15:32:04, dshwang wrote: > 2. in Blink > #define guard > > #if ...
7 years, 2 months ago (2013-10-16 15:44:18 UTC) #19
dshwang
On 2013/10/16 15:44:18, jamesr wrote: > It's pointless to have an #if check for a ...
7 years, 2 months ago (2013-10-16 17:04:06 UTC) #20
jamesr
Precisely! Learning how to do cross-repo changes is a skill that we hopefully won't need ...
7 years, 2 months ago (2013-10-16 17:15:44 UTC) #21
dshwang
I changed what you advice. thx. jamesr@, could you review again? :)
7 years, 2 months ago (2013-10-16 17:16:42 UTC) #22
dshwang
On 2013/10/16 17:15:44, jamesr wrote: > Precisely! > > Learning how to do cross-repo changes ...
7 years, 2 months ago (2013-10-16 17:19:11 UTC) #23
jamesr
lgtm
7 years, 2 months ago (2013-10-16 17:22:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-16 17:30:07 UTC) #25
dshwang
On 2013/10/16 17:22:30, jamesr wrote: > lgtm Thank you!
7 years, 2 months ago (2013-10-16 17:30:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-17 06:29:25 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-17 15:08:15 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12068
7 years, 2 months ago (2013-10-17 17:11:20 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-17 17:16:58 UTC) #30
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12105
7 years, 2 months ago (2013-10-17 19:26:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-17 19:29:06 UTC) #32
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12144
7 years, 2 months ago (2013-10-17 22:41:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-17 23:02:23 UTC) #34
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12180
7 years, 2 months ago (2013-10-18 02:19:35 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-18 07:14:46 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=8859
7 years, 2 months ago (2013-10-18 19:40:49 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/37001
7 years, 2 months ago (2013-10-18 20:15:08 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/304001
7 years, 2 months ago (2013-10-21 10:42:01 UTC) #39
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12638
7 years, 2 months ago (2013-10-21 12:25:38 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/304001
7 years, 2 months ago (2013-10-21 12:55:45 UTC) #41
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12687
7 years, 2 months ago (2013-10-21 16:18:05 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/304001
7 years, 2 months ago (2013-10-21 16:20:05 UTC) #43
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12741
7 years, 2 months ago (2013-10-21 19:13:22 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/23834010/304001
7 years, 2 months ago (2013-10-21 19:26:10 UTC) #45
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 00:31:19 UTC) #46
Message was sent while issue was closed.
Change committed as 160110

Powered by Google App Engine
This is Rietveld 408576698