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

Issue 2686173003: Remove uses of skia::GetWritablePixels(PaintCanvas) (Closed)

Created:
3 years, 10 months ago by enne (OOO)
Modified:
3 years, 10 months ago
Reviewers:
danakj, rjkroege, watk, ddorwin, miu
CC:
cc-bugs_chromium.org, chfremer+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove uses of skia::GetWritablePixels(PaintCanvas) The platform_canvas function is not usable when PaintCanvas is a different type than SkCanvas. Route callers through a new function instead. There a number of callers that still want to use SkCanvas, so have left the original function. Since all of these GetWritablePixels callers are using SkCanvasVideoRenderer, take the opportunity to properly convert that to PaintCanvas as well. BUG=671433 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2686173003 Cr-Commit-Position: refs/heads/master@{#449752} Committed: https://chromium.googlesource.com/chromium/src/+/f08671daf99407814b72eb5cbfd3d1af7069ef13

Patch Set 1 #

Total comments: 5

Patch Set 2 : danakj review; skcanvasvideorenderer #

Patch Set 3 : Add more deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -82 lines) Patch
M cc/paint/paint_canvas.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/paint/paint_canvas.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/image_capture_frame_grabber.cc View 1 4 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/media/recorder/video_track_recorder.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_compositor.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc View 1 4 chunks +3 lines, -3 lines 0 comments Download
M media/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M media/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.h View 1 5 chunks +5 lines, -4 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.cc View 1 7 chunks +18 lines, -17 lines 0 comments Download
M media/renderers/skcanvas_video_renderer_unittest.cc View 1 23 chunks +45 lines, -43 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (20 generated)
enne (OOO)
3 years, 10 months ago (2017-02-09 22:01:22 UTC) #3
danakj
https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc File cc/paint/paint_canvas.cc (right): https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc#newcode25 cc/paint/paint_canvas.cc:25: if (!canvas || !output) { ಠ_ಠ is needed? https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.h ...
3 years, 10 months ago (2017-02-09 23:13:50 UTC) #6
enne (OOO)
https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.h File cc/paint/paint_canvas.h (right): https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.h#newcode27 cc/paint/paint_canvas.h:27: CC_PAINT_EXPORT bool ToPixmap(PaintCanvas* canvas, SkPixmap* output); On 2017/02/09 at ...
3 years, 10 months ago (2017-02-09 23:18:24 UTC) #7
danakj
https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.h File cc/paint/paint_canvas.h (right): https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.h#newcode27 cc/paint/paint_canvas.h:27: CC_PAINT_EXPORT bool ToPixmap(PaintCanvas* canvas, SkPixmap* output); On 2017/02/09 23:18:24, ...
3 years, 10 months ago (2017-02-09 23:21:09 UTC) #8
danakj
https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc File cc/paint/paint_canvas.cc (right): https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc#newcode25 cc/paint/paint_canvas.cc:25: if (!canvas || !output) { On 2017/02/09 23:13:50, danakj ...
3 years, 10 months ago (2017-02-09 23:23:58 UTC) #9
enne (OOO)
On 2017/02/09 at 23:23:58, danakj wrote: > https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc > File cc/paint/paint_canvas.cc (right): > > https://codereview.chromium.org/2686173003/diff/1/cc/paint/paint_canvas.cc#newcode25 ...
3 years, 10 months ago (2017-02-09 23:33:14 UTC) #11
miu
lgtm (Note: I'm not the owner of any of this code, but the change seems ...
3 years, 10 months ago (2017-02-09 23:39:10 UTC) #12
enne (OOO)
On 2017/02/09 at 23:39:10, miu wrote: > lgtm (Note: I'm not the owner of any ...
3 years, 10 months ago (2017-02-09 23:45:04 UTC) #13
enne (OOO)
rjkroege: content/browser/renderer_host OWNERS watk: media OWNERS
3 years, 10 months ago (2017-02-09 23:46:39 UTC) #16
rjkroege
lgtm
3 years, 10 months ago (2017-02-10 02:56:24 UTC) #21
enne (OOO)
+ddorwin as alternate media OWNER
3 years, 10 months ago (2017-02-10 21:02:17 UTC) #27
watk
sorry, looking now
3 years, 10 months ago (2017-02-10 21:44:09 UTC) #28
watk
lgtm
3 years, 10 months ago (2017-02-10 21:52:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686173003/40001
3 years, 10 months ago (2017-02-10 22:03:18 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 22:11:09 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f08671daf99407814b72eb5cbfd3...

Powered by Google App Engine
This is Rietveld 408576698