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

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
Reviewers:
danakj
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove some unnecessary const scoped_refptr&. This patch makes the API a bit clearer by taking a copy of scoped_refptr in some situations (where ownership is shared) and using a raw pointer in situations where ownership is not needed. The only references that remain are the ones captured in lambdas or Callbacks. R=danakj BUG=589044 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4065174ac28746b10a832411426bd756d9c5979c Cr-Commit-Position: refs/heads/master@{#381524}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -93 lines) Patch
M cc/layers/layer_proto_converter.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M cc/layers/layer_proto_converter.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M cc/layers/video_layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/video_layer_impl.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M cc/output/output_surface.h View 1 chunk +6 lines, -7 lines 0 comments Download
M cc/output/output_surface.cc View 2 chunks +16 lines, -16 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/renderer_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M cc/output/texture_mailbox_deleter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/texture_mailbox_deleter.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M cc/resources/video_resource_updater.h View 2 chunks +4 lines, -5 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 7 chunks +13 lines, -14 lines 0 comments Download
M cc/surfaces/surface_display_output_surface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_display_output_surface.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M cc/test/fake_video_frame_provider.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager.cc View 1 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
vmpstr
Please take a look.
4 years, 9 months ago (2016-03-14 22:14:23 UTC) #1
vmpstr
ping
4 years, 9 months ago (2016-03-15 20:54:22 UTC) #2
danakj
LG except https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.cc File cc/layers/layer_proto_converter.cc (left): https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.cc#oldcode97 cc/layers/layer_proto_converter.cc:97: [layer_id_map](Layer* layer) { (*layer_id_map)[layer->id()] = layer; }); ...
4 years, 9 months ago (2016-03-16 00:08:15 UTC) #3
vmpstr
PTAL https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.h File cc/layers/layer_proto_converter.h (right): https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.h#newcode69 cc/layers/layer_proto_converter.h:69: using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>; On 2016/03/16 00:08:15, ...
4 years, 9 months ago (2016-03-16 16:38:37 UTC) #5
danakj
https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.h File cc/layers/layer_proto_converter.h (right): https://codereview.chromium.org/1803863003/diff/1/cc/layers/layer_proto_converter.h#newcode69 cc/layers/layer_proto_converter.h:69: using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>; On 2016/03/16 16:38:37, vmpstr ...
4 years, 9 months ago (2016-03-16 18:04:32 UTC) #6
danakj
LGTM
4 years, 9 months ago (2016-03-16 18:04:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803863003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803863003/20001
4 years, 9 months ago (2016-03-16 18:05:55 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-16 20:44:14 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 20:46:26 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4065174ac28746b10a832411426bd756d9c5979c
Cr-Commit-Position: refs/heads/master@{#381524}

Powered by Google App Engine
This is Rietveld 408576698