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

Issue 23455058: WIP: WebLayer::addAnimation should transfer the ownership of WebAnimation instance. (Closed)

Created:
7 years, 3 months ago by dshwang
Modified:
7 years, 1 month ago
Reviewers:
jamesr
CC:
blink-reviews, danakj, dsinclair, blink-layers+watch_chromium.org, dglazkov+blink, Rik, Stephen Chennney, jeez, pdr., Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

WIP: not for review. This CL's goal is to clarify the direction of Issue 290217 WebLayer::addAnimation should transfer the ownership of WebAnimation instance. Introduce WebPassOwnPtr to transfer OwnPtr or PassOwnPtr from Blink to Chromium. BUG=290217

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add scoped_ptr<T> toScopedPtr() #

Patch Set 3 : Improve WebPassOwnPtr so that it is hard to make a mistake. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -42 lines) Patch
M Source/core/platform/graphics/GraphicsLayer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/rendering/CompositedLayerMapping.cpp View 1 2 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 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/tests/GraphicsLayerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebLayer.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
A + public/platform/WebPassOwnPtr.h View 1 2 2 chunks +48 lines, -28 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jamesr
I don't think you will be able to write a PassOwnPtr type that works for ...
7 years, 3 months ago (2013-09-24 17:52:10 UTC) #1
dshwang
> I don't think you will be able to write a PassOwnPtr type that works ...
7 years, 3 months ago (2013-09-24 18:23:22 UTC) #2
jamesr
On 2013/09/24 18:23:22, dshwang wrote: > > I don't think you will be able to ...
7 years, 3 months ago (2013-09-24 18:40:50 UTC) #3
jamesr
The double negative was not intentional. What I meant was that requiring the caller to ...
7 years, 2 months ago (2013-09-24 20:44:51 UTC) #4
dshwang
On 2013/09/24 20:44:51, jamesr wrote: > The double negative was not intentional. What I meant ...
7 years, 2 months ago (2013-09-24 21:14:37 UTC) #5
dshwang
On 2013/09/24 20:44:51, jamesr wrote: > The double negative was not intentional. What I meant ...
7 years, 2 months ago (2013-09-24 21:14:38 UTC) #6
dshwang
On 2013/09/24 21:14:38, dshwang wrote: > I understand what you really want. > > But ...
7 years, 2 months ago (2013-09-25 07:14:48 UTC) #7
jamesr
I don't think an incomplete smart pointer type like this one is compelling enough to ...
7 years, 2 months ago (2013-09-25 22:10:00 UTC) #8
trchen
On 2013/09/25 22:10:00, jamesr wrote: > I don't think an incomplete smart pointer type like ...
7 years, 2 months ago (2013-09-25 22:22:09 UTC) #9
jamesr
On 2013/09/25 22:22:09, trchen wrote: > On 2013/09/25 22:10:00, jamesr wrote: > > I don't ...
7 years, 2 months ago (2013-09-25 22:27:00 UTC) #10
trchen
On 2013/09/25 22:27:00, jamesr wrote: > On 2013/09/25 22:22:09, trchen wrote: > > On 2013/09/25 ...
7 years, 2 months ago (2013-09-25 22:49:18 UTC) #11
dshwang
On 2013/09/25 22:49:18, trchen wrote: > On 2013/09/25 22:27:00, jamesr wrote: > > On 2013/09/25 ...
7 years, 2 months ago (2013-09-26 14:36:54 UTC) #12
dshwang
I understand that it is impossible that c++ type system converts WebPassOwnPtr<T> -> scoped_ptr<T>. However ...
7 years, 2 months ago (2013-09-27 09:35:17 UTC) #13
trchen
I have a more fundamental question. What is the historical reason to prohibit the use ...
7 years, 2 months ago (2013-09-28 01:45:25 UTC) #14
jamesr1
Which std pointers? On Sep 27, 2013 6:45 PM, <trchen@chromium.org> wrote: > I have a ...
7 years, 2 months ago (2013-09-28 04:57:14 UTC) #15
dshwang
On 2013/09/28 04:57:14, jamesr1 wrote: > Which std pointers? > On Sep 27, 2013 6:45 ...
7 years, 2 months ago (2013-09-30 11:32:29 UTC) #16
dshwang
Hi, We have three options. If we decide which is the best, I can resolve ...
7 years, 2 months ago (2013-10-07 11:56:42 UTC) #17
abarth-chromium
On 2013/10/07 11:56:42, dshwang wrote: > 3. Use std::unique_ptr > pros: hard to make a ...
7 years, 2 months ago (2013-10-07 19:12:48 UTC) #18
jamesr
1. We can't do 3 until all of our toolchains support C++11 and 2 had ...
7 years, 2 months ago (2013-10-07 19:37:40 UTC) #19
trchen
On 2013/10/07 19:37:40, jamesr wrote: > 1. We can't do 3 until all of our ...
7 years, 2 months ago (2013-10-07 21:12:32 UTC) #20
dshwang
On 2013/10/07 19:37:40, jamesr wrote: > 1. We can't do 3 until all of our ...
7 years, 2 months ago (2013-10-08 12:35:32 UTC) #21
jamesr
There are still several basic issues with this: 1.) It's not symmetric, it only works ...
7 years, 2 months ago (2013-10-08 20:52:22 UTC) #22
dshwang
7 years, 2 months ago (2013-10-09 10:03:42 UTC) #23
On 2013/10/08 20:52:22, jamesr wrote:
> This discussion is really going nowhere.  When we have C++11 or better we can
do
> better, until then we're stuck with raw pointers + comments.

Ok, I'll use raw pointers + comments. Thank you for your explanation.

Powered by Google App Engine
This is Rietveld 408576698