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

Issue 619343003: Optimize to copy from rotated video to canvas. (Closed)

Created:
6 years, 2 months ago by dshwang
Modified:
6 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Optimize to copy from rotated video to canvas. Perform this rotation on the canvas, rather than allocating a new bitmap and copying. BUG=91208, 47554 Committed: https://crrev.com/bc6e9d5eeef32478690947cb1fdc2e48439acb3d Cr-Commit-Position: refs/heads/master@{#299094}

Patch Set 1 #

Total comments: 1

Patch Set 2 : scaling and rotating the result to fit dimensions specified by |dest_rect| #

Patch Set 3 : Add unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -32 lines) Patch
M media/filters/skcanvas_video_renderer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/skcanvas_video_renderer.cc View 1 1 chunk +38 lines, -23 lines 0 comments Download
M media/filters/skcanvas_video_renderer_unittest.cc View 1 2 9 chunks +103 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
dshwang
Could you review? It optimizes suderman's https://codereview.chromium.org/402133005 CL. Sorry rileya@ for taking your TODO. I ...
6 years, 2 months ago (2014-10-02 19:16:04 UTC) #2
dshwang
https://codereview.chromium.org/619343003/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/619343003/diff/1/media/filters/skcanvas_video_renderer.cc#newcode363 media/filters/skcanvas_video_renderer.cc:363: canvas->restore(); This code is almost copy&paste from https://code.google.com/p/chromium/codesearch#chromium/src/ui/gfx/skbitmap_operations.cc&q=skBitmapOperations::Rotate&sq=package:chromium&type=cs&l=761
6 years, 2 months ago (2014-10-02 19:17:32 UTC) #3
dshwang
I test it on http://browsertests.herokuapp.com/media/video-canvas/ The video is 180deg rotated, which was downloaded from https://code.google.com/p/chromium/issues/detail?id=47554#c2
6 years, 2 months ago (2014-10-02 19:19:33 UTC) #4
rileya (GONE FROM CHROMIUM)
> Sorry rileya@ for taking your TODO. Haha, no worries, thanks for tackling this! lgtm! ...
6 years, 2 months ago (2014-10-02 20:16:08 UTC) #5
rileya (GONE FROM CHROMIUM)
Actually, looking at the trybots, I think there may be a bug here. Look at: ...
6 years, 2 months ago (2014-10-02 20:19:41 UTC) #6
dshwang
On 2014/10/02 20:16:08, rileya wrote: > > Sorry rileya@ for taking your TODO. > > ...
6 years, 2 months ago (2014-10-03 13:04:53 UTC) #10
dshwang
scherkus@: Could you review the changes?
6 years, 2 months ago (2014-10-09 20:01:02 UTC) #13
scherkus (not reviewing)
lgtm
6 years, 2 months ago (2014-10-09 20:02:28 UTC) #14
dshwang
On 2014/10/09 20:02:28, scherkus wrote: > lgtm thank you for review!
6 years, 2 months ago (2014-10-10 11:01:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619343003/80001
6 years, 2 months ago (2014-10-10 11:02:14 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:80001)
6 years, 2 months ago (2014-10-10 11:54:02 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 11:54:47 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bc6e9d5eeef32478690947cb1fdc2e48439acb3d
Cr-Commit-Position: refs/heads/master@{#299094}

Powered by Google App Engine
This is Rietveld 408576698