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

Issue 24165003: Don't clone WebAnimation in WebLayerImpl::addAnimation(). (Closed)

Created:
7 years, 3 months ago by dshwang
Modified:
7 years, 2 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, ajuma
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Don't clone WebAnimation in WebLayerImpl::addAnimation(). Blink does not need a WebAnimation object after passing it to Chromium, so we can pass the ownership of cc:Animation in WebAnimation to Chromium compositor instead of cloning. ANIMATION_OWNERSHIP_TRANSFER is a temporary macro to change addAnimation() in both Blink and Chromium. If ANIMATION_OWNERSHIP_TRANSFER is defined, Blink passes ownership of WebAnimation to Chromium, so Chromium must delete the given pointer. BUG=290217 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229128

Patch Set 1 #

Total comments: 1

Patch Set 2 : Delete the pointer under ANIMATION_OWNERSHIP_NOT_TRANSFER guard #

Patch Set 3 : CL to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M webkit/renderer/compositor_bindings/web_animation_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/renderer/compositor_bindings/web_animation_impl.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dshwang
7 years, 3 months ago (2013-09-19 18:58:35 UTC) #1
dshwang
On 2013/09/19 18:58:35, dshwang wrote: https://codereview.chromium.org/23834010/ is submitted to note the changed semantic of WebLayer::addAnimation() ...
7 years, 3 months ago (2013-09-19 19:15:39 UTC) #2
Ian Vollick
On 2013/09/19 19:15:39, dshwang wrote: > On 2013/09/19 18:58:35, dshwang wrote: > > https://codereview.chromium.org/23834010/ is ...
7 years, 3 months ago (2013-09-20 15:17:08 UTC) #3
dshwang
On 2013/09/20 15:17:08, Ian Vollick wrote: > On 2013/09/19 19:15:39, dshwang wrote: > > On ...
7 years, 3 months ago (2013-09-20 15:18:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/1
7 years, 3 months ago (2013-09-20 15:19:22 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=26643
7 years, 3 months ago (2013-09-20 15:31:24 UTC) #6
dshwang
@nduca, @jamesr, could you review? Missing LGTM from an OWNER for these files: webkit/renderer/compositor_bindings/web_animation_impl.cc webkit/renderer/compositor_bindings/web_animation_impl.h ...
7 years, 3 months ago (2013-09-20 15:34:11 UTC) #7
jamesr
Patch itself looks good, but what's the staging plan? Currently the Blink code deletes the ...
7 years, 3 months ago (2013-09-23 18:09:31 UTC) #8
dshwang
On 2013/09/23 18:09:31, jamesr wrote: > Patch itself looks good, but what's the staging plan? ...
7 years, 3 months ago (2013-09-24 14:41:33 UTC) #9
dshwang
WebLayerImpl::addAnimation will be as follows: bool WebLayerImpl::addAnimation(WebPassOwnPtr<WebKit::WebAnimation> animation) { return layer_->AddAnimation( static_cast<WebAnimationImpl*>(animation)->PassAnimation()); } If we ...
7 years, 3 months ago (2013-09-24 14:49:58 UTC) #10
jamesr
I don't think your WebPassOwnPtr<> type is viable (see comments on the other side), so ...
7 years, 3 months ago (2013-09-24 17:55:05 UTC) #11
dshwang
On 2013/09/24 17:55:05, jamesr wrote: > I don't think your WebPassOwnPtr<> type is viable (see ...
7 years, 3 months ago (2013-09-24 18:24:57 UTC) #12
dshwang
After https://codereview.chromium.org/23834010/ is landed, this CL will pick Blink commit to sync with Blink.
7 years, 2 months ago (2013-10-09 16:59:53 UTC) #13
jamesr
lgtm
7 years, 2 months ago (2013-10-15 21:14:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-16 17:09:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-16 20:37:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-16 21:21:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-17 00:13:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-17 01:27:34 UTC) #19
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=89576
7 years, 2 months ago (2013-10-17 08:55:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/24165003/35001
7 years, 2 months ago (2013-10-17 10:54:49 UTC) #21
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 15:04:35 UTC) #22
Message was sent while issue was closed.
Change committed as 229128

Powered by Google App Engine
This is Rietveld 408576698