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

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

Created:
4 years, 7 months ago by tomhudson
Modified:
4 years, 7 months ago
Reviewers:
f(malita), spang
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-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 Ozone-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,spang@chromium.org BUG=skia:5707, 604716 Committed: https://crrev.com/71c5554872e1b2094a1c3bddbc5a520040d2607a Cr-Commit-Position: refs/heads/master@{#391231}

Patch Set 1 #

Patch Set 2 : remove temporary local #

Total comments: 3

Patch Set 3 : trybots missed one missing include? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M ui/ozone/platform/caca/caca_window_manager.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_buffer.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_buffer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_console_buffer.h View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_console_buffer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_drm_device.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/mock_dumb_buffer_generator.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/ozone/public/surface_ozone_canvas.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (6 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/1942973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942973002/1
4 years, 7 months ago (2016-05-02 19:21:58 UTC) #2
tomhudson
Florin: Skia reviewer. spang@: please review ui/ozone/.
4 years, 7 months ago (2016-05-02 19:51:57 UTC) #3
f(malita)
Non-owner LGTM. https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc File ui/ozone/platform/caca/caca_window_manager.cc (right): https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc#newcode32 ui/ozone/platform/caca/caca_window_manager.cc:32: sk_sp<SkSurface> GetSurface() override; Hmm, I see the ...
4 years, 7 months ago (2016-05-02 20:15:47 UTC) #4
tomhudson
https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc File ui/ozone/platform/caca/caca_window_manager.cc (right): https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc#newcode32 ui/ozone/platform/caca/caca_window_manager.cc:32: sk_sp<SkSurface> GetSurface() override; On 2016/05/02 20:15:47, f(malita) wrote: > ...
4 years, 7 months ago (2016-05-02 20:20:01 UTC) #5
spang
lgtm https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc File ui/ozone/platform/caca/caca_window_manager.cc (right): https://codereview.chromium.org/1942973002/diff/20001/ui/ozone/platform/caca/caca_window_manager.cc#newcode32 ui/ozone/platform/caca/caca_window_manager.cc:32: sk_sp<SkSurface> GetSurface() override; On 2016/05/02 20:20:01, tomhudson wrote: ...
4 years, 7 months ago (2016-05-02 21:00:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942973002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942973002/20001
4 years, 7 months ago (2016-05-03 13:27:01 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/164266)
4 years, 7 months ago (2016-05-03 14:01:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942973002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942973002/40001
4 years, 7 months ago (2016-05-03 14:09:10 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-03 14:41:28 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 14:43:40 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/71c5554872e1b2094a1c3bddbc5a520040d2607a
Cr-Commit-Position: refs/heads/master@{#391231}

Powered by Google App Engine
This is Rietveld 408576698