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

Issue 1939783002: 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, android-webview-reviews_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 Android-specific section 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,torne@chromium.org,changwan@chromium.org TBR=miguelg@chromium.org BUG=skia:5077, 604716 Committed: https://crrev.com/709a7536e917ff3c294810cd2c76008d43630ccd Cr-Commit-Position: refs/heads/master@{#391206}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Florin's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -29 lines) Patch
M android_webview/browser/browser_view_renderer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M android_webview/native/aw_pdf_exporter.h View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/native/aw_picture.h View 3 chunks +3 lines, -3 lines 0 comments Download
M android_webview/native/aw_picture.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/native/java_browser_view_renderer_helper.h View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/native/java_browser_view_renderer_helper.cc View 6 chunks +7 lines, -8 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/decoration_title.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/crushed_sprite_layer.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/crushed_sprite_layer.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/layer_title_cache.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/logo_service.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/android/content_view_core.h View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 19 (9 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/1939783002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939783002/20001
4 years, 7 months ago (2016-05-02 15:11:14 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 15:56:03 UTC) #4
tomhudson
Florin: Skia review, please. Torne: please review android_webview/ and content/public/browser/android/. changwan@: please review chrome/browser/android/compositor/.
4 years, 7 months ago (2016-05-02 16:07:17 UTC) #5
f(malita)
Non-owner LGTM, w/ a couple of nits. https://codereview.chromium.org/1939783002/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1939783002/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode320 android_webview/browser/browser_view_renderer.cc:320: return sk_sp<SkPicture>(emptyRecorder.finishRecordingAsPicture()); ...
4 years, 7 months ago (2016-05-02 16:51:41 UTC) #6
tomhudson
On 2016/05/02 16:51:41, f(malita) wrote: > a couple of nits. Done. +Miguel: please review chrome/browser/android/, ...
4 years, 7 months ago (2016-05-02 19:10:31 UTC) #9
Changwan Ryu
chrome/browser/android/compositor/ lgtm. Thanks for fixing includes as well.
4 years, 7 months ago (2016-05-03 02:26:45 UTC) #10
Torne
Miguel is OOO all this week, you might want to find a different owner. android_webview ...
4 years, 7 months ago (2016-05-03 11:17:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939783002/40001
4 years, 7 months ago (2016-05-03 11:30:38 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-03 12:16:25 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 12:17:52 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/709a7536e917ff3c294810cd2c76008d43630ccd
Cr-Commit-Position: refs/heads/master@{#391206}

Powered by Google App Engine
This is Rietveld 408576698