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

Issue 2572423002: [SPv2] Use PassRefPtr in PropertyTreeState setter and remove meaningless DCHECK (Closed)

Created:
4 years ago by trchen
Modified:
4 years ago
Reviewers:
pdr., jbroman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[SPv2] Use PassRefPtr in PropertyTreeState setter and remove meaningless DCHECK The common pattern is to accept PassRefPtr in setters because it will allow zero cost ownership transfer. Also the DCHECK for non-unique ownership is removed, because it never worked as intended. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/078212bbd956d7d72333d75ca3c2d2da5fff1190 Cr-Commit-Position: refs/heads/master@{#439626}

Patch Set 1 #

Total comments: 1

Patch Set 2 : PassRefPtr<T> ---> RefPtr<T>&& #

Total comments: 1

Patch Set 3 : that makes sense. thanks! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -12 lines) Patch
M third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h View 1 2 1 chunk +8 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
trchen
https://codereview.chromium.org/2572423002/diff/1/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h File third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h (left): https://codereview.chromium.org/2572423002/diff/1/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h#oldcode43 third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h:43: DCHECK(!node->hasOneRef()); Just realized this DCHECK makes no sense. The ...
4 years ago (2016-12-15 04:15:52 UTC) #3
pdr.
LGTM
4 years ago (2016-12-15 04:27:46 UTC) #6
jbroman
FYI, there was a PSA that PassRefPtr is deprecated. https://bugs.chromium.org/p/chromium/issues/detail?id=494719 https://groups.google.com/a/chromium.org/d/msg/blink-dev/h21zh25fvpE/DUxEYWFWBgAJ Though I haven't seen ...
4 years ago (2016-12-15 04:59:50 UTC) #7
trchen
Thanks for the heads up! Could you double check I'm doing the pattern right?
4 years ago (2016-12-15 05:12:24 UTC) #9
jbroman
https://codereview.chromium.org/2572423002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h File third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h (right): https://codereview.chromium.org/2572423002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h#newcode41 third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h:41: void setTransform(RefPtr<const TransformPaintPropertyNode>&& node) { Prefer RefPtr<T> as the ...
4 years ago (2016-12-15 15:35:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2572423002/40001
4 years ago (2016-12-15 22:20:17 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/357478)
4 years ago (2016-12-16 03:04:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2572423002/40001
4 years ago (2016-12-19 22:00:19 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-19 23:58:47 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-20 00:01:01 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/078212bbd956d7d72333d75ca3c2d2da5fff1190
Cr-Commit-Position: refs/heads/master@{#439626}

Powered by Google App Engine
This is Rietveld 408576698