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

Issue 531353002: Add VideoImageGenerator. (Closed)

Created:
6 years, 3 months ago by rileya (GONE FROM CHROMIUM)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add VideoImageGenerator. This allows Skia to do YUV conversion on the GPU in the case of a hardware-accelerated canvas. Note that this only works for JPEG color space video frames, as that's the only format Skia currently supports. BUG=91208 Committed: https://crrev.com/54b8c174c8420abc0bc519eb032b1289029fcc48 Cr-Commit-Position: refs/heads/master@{#294981}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix comment #

Total comments: 9

Patch Set 4 : remove scoped_refptr-age #

Patch Set 5 : Remove unnecessary line break #

Patch Set 6 : Copy into the buffers provided to VideoImageGenerator, rather than setting our pointers directly. #

Patch Set 7 : virtual dtor #

Patch Set 8 : Add refcounting back #

Patch Set 9 : #

Total comments: 17

Patch Set 10 : address comments #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : make last_frame_ bitmap volatile #

Patch Set 13 : #

Patch Set 14 : build fix #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : Use N32 color type to (hopefully) appease Android bots... #

Patch Set 18 : Fix VideoFrame lifetimes #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -78 lines) Patch
M cc/resources/video_resource_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -6 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M media/filters/skcanvas_video_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +6 lines, -2 lines 0 comments Download
M media/filters/skcanvas_video_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +111 lines, -43 lines 0 comments Download
M media/filters/skcanvas_video_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +29 lines, -24 lines 0 comments Download

Messages

Total messages: 38 (14 generated)
rileya (GONE FROM CHROMIUM)
This speeds up video->accelerated canvas copies significantly. Currently only for JPEG color range, but with ...
6 years, 3 months ago (2014-09-03 02:42:55 UTC) #2
reed1
skia part lgtm
6 years, 3 months ago (2014-09-03 12:59:12 UTC) #3
scherkus (not reviewing)
mostly nits CL description needs to be wrapped at 72 and contain a BUG= as ...
6 years, 3 months ago (2014-09-03 22:51:50 UTC) #4
danakj
https://codereview.chromium.org/531353002/diff/40001/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/531353002/diff/40001/cc/resources/video_resource_updater.cc#newcode252 cc/resources/video_resource_updater.cc:252: video_renderer_->Copy(video_frame, lock.sk_canvas()); cc LGTM if the media people think ...
6 years, 3 months ago (2014-09-03 22:57:34 UTC) #5
rileya (GONE FROM CHROMIUM)
> if the media people think it makes sense for Copy() to hold a reference ...
6 years, 3 months ago (2014-09-05 20:03:08 UTC) #6
rileya (GONE FROM CHROMIUM)
After consulting with Skia folks, I think the earlier approach of making the VideoImageGenerator hold ...
6 years, 3 months ago (2014-09-08 19:51:21 UTC) #8
aelias_OOO_until_Jul13
content/browser/renderer_host/render_widget_host_view_browsertest.cc lgtm
6 years, 3 months ago (2014-09-08 20:13:35 UTC) #9
scherkus (not reviewing)
https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc#newcode193 media/filters/skcanvas_video_renderer.cc:193: size_t rowBytes, nit: I think skia has a different ...
6 years, 3 months ago (2014-09-09 00:27:06 UTC) #10
DaleCurtis
drive-by! https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc#newcode72 media/filters/skcanvas_video_renderer.cc:72: SkBitmap tmp; Drive by, you can avoid putting ...
6 years, 3 months ago (2014-09-09 00:32:53 UTC) #11
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/531353002/diff/160001/media/filters/skcanvas_video_renderer.cc#newcode72 media/filters/skcanvas_video_renderer.cc:72: SkBitmap tmp; On 2014/09/09 00:32:53, DaleCurtis wrote: > Drive ...
6 years, 3 months ago (2014-09-09 00:50:14 UTC) #12
scherkus (not reviewing)
lgtm https://codereview.chromium.org/531353002/diff/180001/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/531353002/diff/180001/media/filters/skcanvas_video_renderer.cc#newcode169 media/filters/skcanvas_video_renderer.cc:169: default: On 2014/09/09 00:50:14, rileya wrote: > Off-topic: ...
6 years, 3 months ago (2014-09-09 00:55:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/531353002/200001
6 years, 3 months ago (2014-09-10 00:07:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/220001
6 years, 3 months ago (2014-09-11 19:05:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/240001
6 years, 3 months ago (2014-09-11 19:12:16 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/14661)
6 years, 3 months ago (2014-09-11 19:35:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/260001
6 years, 3 months ago (2014-09-11 20:58:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/13433) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/15494) mac_chromium_rel_swarming ...
6 years, 3 months ago (2014-09-11 23:25:11 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/280001
6 years, 3 months ago (2014-09-13 00:52:57 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/16002)
6 years, 3 months ago (2014-09-13 02:12:30 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/320001
6 years, 3 months ago (2014-09-15 20:12:12 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/14371)
6 years, 3 months ago (2014-09-15 21:29:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/531353002/380001
6 years, 3 months ago (2014-09-16 00:00:57 UTC) #36
commit-bot: I haz the power
Committed patchset #19 (id:380001) as 843d3750b821694b47476a5a69f7e8c42ac565c1
6 years, 3 months ago (2014-09-16 02:21:51 UTC) #37
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 02:23:25 UTC) #38
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/54b8c174c8420abc0bc519eb032b1289029fcc48
Cr-Commit-Position: refs/heads/master@{#294981}

Powered by Google App Engine
This is Rietveld 408576698