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

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

Created:
4 years, 7 months ago by tomhudson
Modified:
4 years, 6 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-notifications_chromium.org, Peter Beverloo, piman+watch_chromium.org, posciak+watch_chromium.org, rickyz+watch_chromium.org, sievers+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 content/ and extensions/-specific sections of the change. 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,piman@chromium.org,rockot@chromium.org,mkwst@chromium.org BUG=skia:5077, 604716 Committed: https://crrev.com/55241b6041af2b175b1183b60f162af2160ee3e7 Cr-Commit-Position: refs/heads/master@{#396458}

Patch Set 1 #

Total comments: 10

Patch Set 2 : std::move() for Florin #

Patch Set 3 : Florin's smart pointer fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -36 lines) Patch
M content/browser/compositor/software_output_device_mac.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/capture/cursor_renderer_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/capture/cursor_renderer_aura.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/font_warmup_win.cc View 1 9 chunks +13 lines, -13 lines 0 comments Download
M content/child/font_warmup_win_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/font_config_ipc_linux.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/font_config_ipc_linux.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/platform_notification_messages.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/canvas_capture_handler.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/canvas_capture_handler.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/canvas_capture_handler_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/html_video_element_capturer_source.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/html_video_element_capturer_source.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/web_contents_capture_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/image_loader.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/test_image_loader.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (5 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/1951013003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951013003/1
4 years, 7 months ago (2016-05-04 15:09:55 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 16:20:33 UTC) #4
tomhudson
fmalita@: Skia reviewer. piman@: please review content/. rockot@: please review extensions/. mkwst@: please security-review content/common/.
4 years, 7 months ago (2016-05-04 16:46:23 UTC) #5
f(malita)
https://codereview.chromium.org/1951013003/diff/1/content/child/font_warmup_win.cc File content/child/font_warmup_win.cc (right): https://codereview.chromium.org/1951013003/diff/1/content/child/font_warmup_win.cc#newcode228 content/child/font_warmup_win.cc:228: ret->set_typeface(typeface); std::move(typeface) https://codereview.chromium.org/1951013003/diff/1/content/child/font_warmup_win.cc#newcode318 content/child/font_warmup_win.cc:318: new_font_obj->set_typeface(old_typeface); std::move(old_typeface) https://codereview.chromium.org/1951013003/diff/1/content/common/font_config_ipc_linux.cc File content/common/font_config_ipc_linux.cc ...
4 years, 7 months ago (2016-05-04 17:22:14 UTC) #6
tomhudson
https://codereview.chromium.org/1951013003/diff/1/content/child/font_warmup_win.cc File content/child/font_warmup_win.cc (right): https://codereview.chromium.org/1951013003/diff/1/content/child/font_warmup_win.cc#newcode228 content/child/font_warmup_win.cc:228: ret->set_typeface(typeface); On 2016/05/04 17:22:13, f(malita) wrote: > std::move(typeface) Done. ...
4 years, 7 months ago (2016-05-04 17:47:10 UTC) #7
f(malita)
https://codereview.chromium.org/1951013003/diff/1/content/common/font_config_ipc_linux.cc File content/common/font_config_ipc_linux.cc (right): https://codereview.chromium.org/1951013003/diff/1/content/common/font_config_ipc_linux.cc#newcode175 content/common/font_config_ipc_linux.cc:175: return mapped_typefaces_insert_it->second.release(); On 2016/05/04 17:47:10, tomhudson wrote: > On ...
4 years, 7 months ago (2016-05-04 18:12:22 UTC) #8
piman
lgtm
4 years, 7 months ago (2016-05-04 21:29:59 UTC) #9
Mike West
LGTM.
4 years, 7 months ago (2016-05-09 18:49:11 UTC) #10
tomhudson
rockot@: ping? fmalita@: sorry, missed that you wanted one more change. Is this good? https://codereview.chromium.org/1951013003/diff/1/content/common/font_config_ipc_linux.cc ...
4 years, 7 months ago (2016-05-26 20:33:16 UTC) #11
Ken Rockot(use gerrit already)
sorry I missed this earlier. lgtm
4 years, 7 months ago (2016-05-26 20:35:21 UTC) #12
f(malita)
On 2016/05/26 20:33:16, tomhudson wrote: > fmalita@: sorry, missed that you wanted one more change. ...
4 years, 7 months ago (2016-05-27 01:09:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951013003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951013003/40001
4 years, 6 months ago (2016-05-27 12:37:54 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-27 14:03:31 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 14:05:51 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/55241b6041af2b175b1183b60f162af2160ee3e7
Cr-Commit-Position: refs/heads/master@{#396458}

Powered by Google App Engine
This is Rietveld 408576698