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

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed)

Created:
4 years, 8 months ago by tomhudson
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jam, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace many skia::RefPtr with sk_sp<> in cc/ Incremental progress towards getting rid of the skia::RefPtr adapter class. R=mkwst@chromium.org,danakj@chromium.org,miguelg@chromium.org,fmalita@chromium.org TBR=esprehn@chromium.org BUG=skia:5077 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/992ec28bf1a2821dd704d5acb74a0d382d3c19c5 Cr-Commit-Position: refs/heads/master@{#390102}

Patch Set 1 #

Patch Set 2 : IWYU oh android thumbnailer #

Patch Set 3 : API contagion to chrome/browser/android/thumbnail/ #

Patch Set 4 : clear() becomes reset() #

Patch Set 5 : can't read a parameter that we std::move()d out of #

Patch Set 6 : rebase #

Patch Set 7 : gpu image decode #

Patch Set 8 : rebase #

Total comments: 84

Patch Set 9 : review #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : fmalita review - deconstify sk_sp<>s #

Total comments: 54

Patch Set 12 : rebase on top of DrawImage patch #

Patch Set 13 : Florin's review #

Total comments: 36

Patch Set 14 : Web*LayerImpl bindings + Dana's nits #

Total comments: 2

Patch Set 15 : Florin's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -317 lines) Patch
M cc/animation/animation_player.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M cc/blink/web_image_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/picture_image_layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/picture_image_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_image_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M cc/output/filter_operation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +7 lines, -9 lines 0 comments Download
M cc/output/filter_operation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -6 lines 0 comments Download
M cc/output/filter_operations_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +21 lines, -24 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +22 lines, -22 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -5 lines 0 comments Download
M cc/output/render_surface_filters.h View 2 chunks +3 lines, -4 lines 0 comments Download
M cc/output/render_surface_filters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +44 lines, -50 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -10 lines 0 comments Download
M cc/output/software_renderer.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 7 chunks +9 lines, -9 lines 0 comments Download
M cc/playback/compositing_display_item.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/playback/display_item_list.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M cc/playback/display_item_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 5 20 chunks +26 lines, -34 lines 0 comments Download
M cc/playback/filter_display_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -4 lines 0 comments Download
M cc/raster/gpu_rasterizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -4 lines 0 comments Download
M cc/resources/ui_resource_bitmap.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -5 lines 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +8 lines, -8 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/test_context_provider.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/test_context_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M cc/test/test_in_process_context_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_blending.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.h View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 19 chunks +29 lines, -27 lines 0 comments Download
M content/common/cc_messages.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +12 lines, -10 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 78 (36 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/1
4 years, 8 months ago (2016-04-07 14:21:16 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/28060)
4 years, 8 months ago (2016-04-07 14:42:15 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/20001
4 years, 8 months ago (2016-04-07 15:29:02 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/28100)
4 years, 8 months ago (2016-04-07 15:54:24 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/40001
4 years, 8 months ago (2016-04-07 16:44:08 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/84509) linux_android_rel_ng on ...
4 years, 8 months ago (2016-04-07 17:03:26 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/60001
4 years, 8 months ago (2016-04-07 17:09:45 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/28171)
4 years, 8 months ago (2016-04-07 17:35:51 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/80001
4 years, 8 months ago (2016-04-08 21:50:31 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/16557) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-08 21:54:26 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/100001
4 years, 8 months ago (2016-04-12 20:30:00 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/203818)
4 years, 8 months ago (2016-04-12 23:24:55 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/120001
4 years, 8 months ago (2016-04-13 15:57:03 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/94765)
4 years, 8 months ago (2016-04-13 16:14:37 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/140001
4 years, 8 months ago (2016-04-13 17:05:40 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 18:48:41 UTC) #33
tomhudson
danakj@: please review cc/ miguelg@: please review chrome/browser/android/ mkwst@: please security review content/common/ junov@: please ...
4 years, 8 months ago (2016-04-13 19:18:17 UTC) #35
Mike West
IPC LGTM.
4 years, 8 months ago (2016-04-13 20:07:15 UTC) #36
Miguel Garcia
chrome/browser/android lgtm
4 years, 8 months ago (2016-04-13 20:13:18 UTC) #37
danakj
https://codereview.chromium.org/1869753003/diff/140001/cc/output/filter_operation.cc File cc/output/filter_operation.cc (right): https://codereview.chromium.org/1869753003/diff/140001/cc/output/filter_operation.cc#newcode90 cc/output/filter_operation.cc:90: const sk_sp<SkImageFilter>& image_filter) ditto https://codereview.chromium.org/1869753003/diff/140001/cc/output/filter_operation.cc#newcode166 cc/output/filter_operation.cc:166: return FilterOperation::CreateReferenceFilter(sk_sp<SkImageFilter>()); nullptr ...
4 years, 8 months ago (2016-04-14 19:37:33 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/160001
4 years, 8 months ago (2016-04-15 22:58:32 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/20149) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-15 23:02:57 UTC) #42
fmalita_google_do_not_use
https://codereview.chromium.org/1869753003/diff/160001/cc/output/filter_operation.h File cc/output/filter_operation.h (right): https://codereview.chromium.org/1869753003/diff/160001/cc/output/filter_operation.h#newcode150 cc/output/filter_operation.h:150: const sk_sp<SkImageFilter> image_filter) { When pass-by-val, the param should ...
4 years, 8 months ago (2016-04-16 15:48:42 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/200001
4 years, 8 months ago (2016-04-18 19:31:11 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/84918)
4 years, 8 months ago (2016-04-18 20:32:42 UTC) #50
f(malita)
https://codereview.chromium.org/1869753003/diff/200001/cc/layers/picture_image_layer_unittest.cc File cc/layers/picture_image_layer_unittest.cc (right): https://codereview.chromium.org/1869753003/diff/200001/cc/layers/picture_image_layer_unittest.cc#newcode42 cc/layers/picture_image_layer_unittest.cc:42: layer->SetImage(skia::SharePtr(image)); I think the new version introduces extra churn: ...
4 years, 8 months ago (2016-04-21 15:45:47 UTC) #51
danakj
https://codereview.chromium.org/1869753003/diff/200001/skia/ext/platform_canvas.h File skia/ext/platform_canvas.h (right): https://codereview.chromium.org/1869753003/diff/200001/skia/ext/platform_canvas.h#newcode92 skia/ext/platform_canvas.h:92: SK_API SkCanvas* CreateCanvas(sk_sp<SkBaseDevice>& device, On 2016/04/21 15:45:47, f(malita) wrote: ...
4 years, 8 months ago (2016-04-21 23:37:21 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/220001
4 years, 8 months ago (2016-04-25 16:34:37 UTC) #54
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 19:50:55 UTC) #56
tomhudson
Florin's recent review. I think the only question is AdoptRef vs SharePtr. https://codereview.chromium.org/1869753003/diff/160001/cc/output/filter_operation.h File cc/output/filter_operation.h ...
4 years, 8 months ago (2016-04-25 20:20:51 UTC) #57
tomhudson
Dana: the one thing that seemed problematic was your proposals in layer_tree_host_pixeltest_blending and layer_tree_host_pixeltest_masks. If ...
4 years, 8 months ago (2016-04-25 20:48:16 UTC) #58
danakj
On Mon, Apr 25, 2016 at 1:48 PM, <tomhudson@google.com> wrote: > Dana: the one thing ...
4 years, 8 months ago (2016-04-25 21:51:11 UTC) #59
danakj
On Mon, Apr 25, 2016 at 1:48 PM, <tomhudson@google.com> wrote: > Dana: the one thing ...
4 years, 8 months ago (2016-04-25 21:53:08 UTC) #60
danakj
LGTM few more comments/nits. This is a tricky change, touching a lot of stuff. Thanks ...
4 years, 8 months ago (2016-04-25 22:06:24 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/260001
4 years, 8 months ago (2016-04-26 15:28:23 UTC) #63
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/60375)
4 years, 8 months ago (2016-04-26 17:10:01 UTC) #65
tomhudson
junov@: just one file in WebKit needs signoff... https://codereview.chromium.org/1869753003/diff/240001/cc/animation/animation_player.cc File cc/animation/animation_player.cc (right): https://codereview.chromium.org/1869753003/diff/240001/cc/animation/animation_player.cc#newcode7 cc/animation/animation_player.cc:7: #include ...
4 years, 7 months ago (2016-04-27 12:06:48 UTC) #66
f(malita)
lgtm https://codereview.chromium.org/1869753003/diff/200001/cc/trees/layer_tree_host_pixeltest_blending.cc File cc/trees/layer_tree_host_pixeltest_blending.cc (right): https://codereview.chromium.org/1869753003/diff/200001/cc/trees/layer_tree_host_pixeltest_blending.cc#newcode147 cc/trees/layer_tree_host_pixeltest_blending.cc:147: layer->SetImage(skia::SharePtr(backing_store->makeImageSnapshot())); On 2016/04/25 20:20:51, tomhudson wrote: > On ...
4 years, 7 months ago (2016-04-27 14:00:41 UTC) #67
tomhudson
Realized Florin's LG is good enough for Blink; don't need junov@ (sorry for the noise, ...
4 years, 7 months ago (2016-04-27 14:43:13 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869753003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869753003/280001
4 years, 7 months ago (2016-04-27 14:43:57 UTC) #74
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 7 months ago (2016-04-27 16:45:51 UTC) #76
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:10:36 UTC) #77
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/992ec28bf1a2821dd704d5acb74a0d382d3c19c5
Cr-Commit-Position: refs/heads/master@{#390102}

Powered by Google App Engine
This is Rietveld 408576698