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

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed)

Created:
4 years, 7 months ago by tomhudson
Modified:
4 years, 7 months ago
CC:
chromium-reviews, derat+watch_chromium.org, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove all uses of skia::RefPtr and stale includes This CL is the cc/, ui/compositor/, and ui/gfx/-specific sections of the change. Remove long-unused ScopedSkRegion. Finish deprecating skia::RefPtr in favor of sk_sp<>. This should significantly reduce the amount of manual reference management Chromium and Blink authors need to do for Skia objects. We still have some APIs vending raw pointers to ref-counted Skia objects which will need to be wrapped in sk_sp<>, but that should be easier and more predictable. This CL does *not* try to remove all cases of raw pointers to Skia objects in Chromium. R=fmalita@chromium.org,danakj@chromium.org,pkasting@chromium.org BUG=skia:5077, 604716 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;tryserver.blink:linux_blink_rel Committed: https://crrev.com/399950bed153c2a0db48d5d69fca31fcb15aeee2 Cr-Commit-Position: refs/heads/master@{#392894}

Patch Set 1 #

Patch Set 2 : Add native_theme/ for IWYU's sake #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : Florin's nits #

Total comments: 2

Patch Set 5 : Dana's fix #

Patch Set 6 : I really don't like the side effect of std::move() #

Patch Set 7 : fix bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -121 lines) Patch
M cc/blink/web_display_item_list_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/heads_up_display_layer.h View 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/heads_up_display_layer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.h View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/playback/discardable_image_map.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M cc/playback/filter_display_item.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/playback/image_hijack_canvas.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/proto/image_serialization_processor.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/proto/skia_conversions.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/quads/render_pass.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/resource_format.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_raster_source.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/paint_recorder.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/paint_recorder.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/canvas.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 5 5 chunks +12 lines, -11 lines 0 comments Download
M ui/gfx/platform_font_linux.h View 4 chunks +3 lines, -4 lines 0 comments Download
M ui/gfx/platform_font_linux.cc View 1 2 3 7 chunks +13 lines, -11 lines 0 comments Download
M ui/gfx/platform_font_win.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M ui/gfx/render_text.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
D ui/gfx/scoped_sk_region.h View 1 chunk +0 lines, -46 lines 0 comments Download
M ui/gfx/skbitmap_operations.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M ui/gfx/skia_util.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/native_theme/native_theme_win.cc View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 42 (22 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/1939143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/1
4 years, 7 months ago (2016-05-02 15:47:00 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/59588) mac_chromium_gn_rel on ...
4 years, 7 months ago (2016-05-02 16:02:55 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/1939143002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/40001
4 years, 7 months ago (2016-05-04 14:12:42 UTC) #10
tomhudson
fmalita@: Skia reviewer. danakj@: Please review cc/, ui/compositor/, ui/gfx/. pkasting@: Please review the *one file* ...
4 years, 7 months ago (2016-05-04 15:35:30 UTC) #11
f(malita)
Non-owner LGTM % some missing moves. https://codereview.chromium.org/1939143002/diff/40001/ui/gfx/platform_font_linux.cc File ui/gfx/platform_font_linux.cc (right): https://codereview.chromium.org/1939143002/diff/40001/ui/gfx/platform_font_linux.cc#newcode156 ui/gfx/platform_font_linux.cc:156: return Font(new PlatformFontLinux(typeface, ...
4 years, 7 months ago (2016-05-04 15:49:58 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 16:00:21 UTC) #14
tomhudson
https://codereview.chromium.org/1939143002/diff/40001/ui/gfx/platform_font_linux.cc File ui/gfx/platform_font_linux.cc (right): https://codereview.chromium.org/1939143002/diff/40001/ui/gfx/platform_font_linux.cc#newcode156 ui/gfx/platform_font_linux.cc:156: return Font(new PlatformFontLinux(typeface, new_family, new_size, style, On 2016/05/04 15:49:57, ...
4 years, 7 months ago (2016-05-04 16:51:54 UTC) #15
Peter Kasting
LGTM
4 years, 7 months ago (2016-05-04 19:05:55 UTC) #16
danakj
LGTM https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc#newcode60 ui/gfx/canvas.cc:60: Canvas::Canvas(const sk_sp<SkCanvas> canvas, float image_scale) remove const
4 years, 7 months ago (2016-05-04 19:44:53 UTC) #17
tomhudson
https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc#newcode60 ui/gfx/canvas.cc:60: Canvas::Canvas(const sk_sp<SkCanvas> canvas, float image_scale) On 2016/05/04 19:44:53, danakj ...
4 years, 7 months ago (2016-05-04 19:59:52 UTC) #18
tomhudson
https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/1939143002/diff/60001/ui/gfx/canvas.cc#newcode60 ui/gfx/canvas.cc:60: Canvas::Canvas(const sk_sp<SkCanvas> canvas, float image_scale) On 2016/05/04 19:44:53, danakj ...
4 years, 7 months ago (2016-05-04 19:59:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939143002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/80001
4 years, 7 months ago (2016-05-04 20:00:47 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/182712)
4 years, 7 months ago (2016-05-04 20:38:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939143002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/80001
4 years, 7 months ago (2016-05-10 17:39:53 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/157976)
4 years, 7 months ago (2016-05-10 18:10:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939143002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/100001
4 years, 7 months ago (2016-05-10 19:36:46 UTC) #31
commit-bot: I haz the power
Failed to apply patch for ui/gfx/platform_font_win.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-10 21:45:43 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939143002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939143002/140001
4 years, 7 months ago (2016-05-11 10:01:06 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 7 months ago (2016-05-11 11:00:29 UTC) #40
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 11:01:53 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/399950bed153c2a0db48d5d69fca31fcb15aeee2
Cr-Commit-Position: refs/heads/master@{#392894}

Powered by Google App Engine
This is Rietveld 408576698