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

Issue 388643002: Rotation into Video Layer + Content Transform (Closed)

Created:
6 years, 5 months ago by suderman
Modified:
6 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Integrated video rotation piping into video layer {impl} and included the transform for fixing the video orientation. BUG=47554 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288194

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Video Layer Impl Tests #

Patch Set 4 : Formatting #

Total comments: 13

Patch Set 5 : Additional Tests #

Patch Set 6 : Alternative transform #

Total comments: 5

Patch Set 7 : Moved from pushproperties to setter and simplified. #

Patch Set 8 : Added dimensions test for rotated videos. #

Patch Set 9 : Removed blank line #

Patch Set 10 : Modified player.html, removed player_size.html #

Patch Set 11 : Removed uneeded parameter. #

Total comments: 19

Patch Set 12 : Moved transform to push properties #

Patch Set 13 : Removed some previous cl formatting #

Patch Set 14 : Updated layer{impl} tests #

Total comments: 7

Patch Set 15 : Added rotation to layer tree host unit tests #

Patch Set 16 : Added comment and swapped bounds #

Patch Set 17 : #

Total comments: 1

Patch Set 18 : Reverted to Patch 11 #

Total comments: 4

Patch Set 19 : Pull and updated tests to use existing videos #

Total comments: 10

Patch Set 20 : Renaming / Cleaning #

Total comments: 2

Patch Set 21 : More test cleanup #

Total comments: 2

Patch Set 22 : Changed to file:// #

Total comments: 2

Patch Set 23 : Removed file/htpp parameter #

Patch Set 24 : Fixed android webmediaplayer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -37 lines) Patch
M cc/layers/video_layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -2 lines 0 comments Download
M cc/layers/video_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +10 lines, -4 lines 0 comments Download
M cc/layers/video_layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +10 lines, -2 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +44 lines, -11 lines 0 comments Download
M cc/layers/video_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +147 lines, -2 lines 0 comments Download
M cc/test/layer_test_common.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +27 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +17 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -1 line 0 comments Download
M media/test/data/player.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
suderman
Only a small change in the webmediaplayer_impl however there are more substantial changes in the ...
6 years, 5 months ago (2014-07-11 18:15:13 UTC) #1
scherkus (not reviewing)
+danakj overall seems OK but I'll defer to danakj@ for better judgement on the cc/ ...
6 years, 5 months ago (2014-07-11 18:54:08 UTC) #2
danakj
I think you wanna add tests to layer_tree_host_unittest_video which are integration unit tests. You can ...
6 years, 5 months ago (2014-07-11 21:04:30 UTC) #3
suderman
Suggest changes have been integrated New Content - new test added for [layer]->[layer impl]->[layer impl] ...
6 years, 5 months ago (2014-07-14 17:34:10 UTC) #4
danakj
So, I looked this over again, and while it appears to work to just do ...
6 years, 5 months ago (2014-07-14 20:59:53 UTC) #5
scherkus (not reviewing)
On 2014/07/14 20:59:53, danakj wrote: > So, I looked this over again, and while it ...
6 years, 5 months ago (2014-07-14 23:35:18 UTC) #6
suderman
If there is a isue with paint to canvas, webgl, etc, I'm thinking we would ...
6 years, 5 months ago (2014-07-14 23:40:25 UTC) #7
suderman
Frame gets completely screwed up in canvas / webgl. I'm assuming we only fix this ...
6 years, 5 months ago (2014-07-14 23:54:12 UTC) #8
danakj
ok since the layer bounds match the output of what layer here, I guess it ...
6 years, 5 months ago (2014-07-17 20:19:06 UTC) #9
suderman
Layers changes made and additional browser test added. With Dana on vacation for the next ...
6 years, 5 months ago (2014-07-21 17:12:17 UTC) #10
enne (OOO)
Sorry if this rehashes previous discussions, but I'm just trying to understand the code. :)
6 years, 5 months ago (2014-07-21 22:37:05 UTC) #11
enne (OOO)
https://codereview.chromium.org/388643002/diff/200001/content/renderer/media/webmediaplayer_impl.cc File content/renderer/media/webmediaplayer_impl.cc (right): https://codereview.chromium.org/388643002/diff/200001/content/renderer/media/webmediaplayer_impl.cc#newcode546 content/renderer/media/webmediaplayer_impl.cc:546: gfx_rect.set_size( Whoa, how does this do the right thing? ...
6 years, 5 months ago (2014-07-21 22:37:14 UTC) #12
suderman
Not a problem at all, it isn't the most straightforward CL. https://codereview.chromium.org/388643002/diff/200001/content/renderer/media/webmediaplayer_impl.cc File content/renderer/media/webmediaplayer_impl.cc (right): ...
6 years, 5 months ago (2014-07-21 23:12:13 UTC) #13
enne (OOO)
https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc File cc/layers/video_layer.cc (right): https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc#newcode24 cc/layers/video_layer.cc:24: impl->set_video_rotation(video_rotation_); This should be set during PushProperties. https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer_impl.cc File ...
6 years, 5 months ago (2014-07-21 23:42:49 UTC) #14
suderman
Both changes I am willing to make, however as both were changed previously when working ...
6 years, 5 months ago (2014-07-22 00:05:20 UTC) #15
enne (OOO)
https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc File cc/layers/video_layer.cc (right): https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc#newcode24 cc/layers/video_layer.cc:24: impl->set_video_rotation(video_rotation_); On 2014/07/22 00:05:20, suderman wrote: > On 2014/07/21 ...
6 years, 5 months ago (2014-07-22 21:10:40 UTC) #16
suderman
https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc File cc/layers/video_layer.cc (right): https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc#newcode24 cc/layers/video_layer.cc:24: impl->set_video_rotation(video_rotation_); If the video source changes it's metadata will ...
6 years, 5 months ago (2014-07-22 21:48:18 UTC) #17
suderman
https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer_impl.cc#newcode139 cc/layers/video_layer_impl.cc:139: gfx::Transform transform = draw_transform(); Unfortunately draw_transform is not set ...
6 years, 5 months ago (2014-07-22 22:53:59 UTC) #18
enne (OOO)
https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer_impl.cc#newcode139 cc/layers/video_layer_impl.cc:139: gfx::Transform transform = draw_transform(); On 2014/07/22 22:53:59, suderman wrote: ...
6 years, 5 months ago (2014-07-22 22:55:37 UTC) #19
suderman
Rotation was moved into transform_ and all changes to video_layer_impl could be removed. I updated ...
6 years, 5 months ago (2014-07-23 21:40:46 UTC) #20
enne (OOO)
Can you keep the test from cc/trees/layer_tree_host_unittest_video.cc from patch set 11 that verifies the damage ...
6 years, 5 months ago (2014-07-23 21:46:53 UTC) #21
suderman
I added the test back in however it won't have rotated bounds. This is because ...
6 years, 5 months ago (2014-07-23 23:27:01 UTC) #22
enne (OOO)
On 2014/07/23 23:27:01, suderman wrote: > I added the test back in however it won't ...
6 years, 5 months ago (2014-07-23 23:39:26 UTC) #23
suderman
> https://codereview.chromium.org/388643002/diff/260001/cc/layers/video_layer.cc > File cc/layers/video_layer.cc (right): > > https://codereview.chromium.org/388643002/diff/260001/cc/layers/video_layer.cc#newcode49 > cc/layers/video_layer.cc:49: content_bounds = > On ...
6 years, 5 months ago (2014-07-24 00:11:03 UTC) #24
enne (OOO)
> layer.cc:86 > When layer has it's destructor called it checks whether it has a ...
6 years, 5 months ago (2014-07-24 00:19:48 UTC) #25
suderman
As the LayerTreeHost has a null root layer I had to set it as the ...
6 years, 5 months ago (2014-07-25 17:45:42 UTC) #26
enne (OOO)
https://codereview.chromium.org/388643002/diff/320001/cc/trees/layer_tree_host_unittest_video.cc File cc/trees/layer_tree_host_unittest_video.cc (right): https://codereview.chromium.org/388643002/diff/320001/cc/trees/layer_tree_host_unittest_video.cc#newcode64 cc/trees/layer_tree_host_unittest_video.cc:64: EXPECT_EQ(gfx::RectF(8.f, 6.f, 6.f, 6.f).ToString(), Does this actually pass? I ...
6 years, 5 months ago (2014-07-25 17:55:13 UTC) #27
danakj
On Jul 22, 2014 11:10 PM, <enne@chromium.org> wrote: > > > https://codereview.chromium.org/388643002/diff/200001/cc/layers/video_layer.cc > File cc/layers/video_layer.cc ...
6 years, 4 months ago (2014-07-27 11:21:13 UTC) #28
enne (OOO)
Sorry, that was my misunderstanding as to what the bounds were being passed in as. ...
6 years, 4 months ago (2014-07-28 17:35:07 UTC) #29
danakj
On 2014/07/28 17:35:07, enne wrote: > Sorry, that was my misunderstanding as to what the ...
6 years, 4 months ago (2014-08-05 14:40:38 UTC) #30
suderman
> Can we go back to patchset 11, more or less, though with any new ...
6 years, 4 months ago (2014-08-05 17:02:10 UTC) #31
danakj
On Tue, Aug 5, 2014 at 1:02 PM, <suderman@chromium.org> wrote: > Can we go back ...
6 years, 4 months ago (2014-08-05 17:15:30 UTC) #32
suderman
On 2014/08/05 17:15:30, danakj wrote: > On Tue, Aug 5, 2014 at 1:02 PM, <mailto:suderman@chromium.org> ...
6 years, 4 months ago (2014-08-05 17:36:58 UTC) #33
danakj
On 2014/08/05 17:36:58, suderman wrote: > On 2014/08/05 17:15:30, danakj wrote: > > On Tue, ...
6 years, 4 months ago (2014-08-05 17:54:18 UTC) #34
suderman
So apparently it doesn't, it was throwing errors when other builds errors existed however once ...
6 years, 4 months ago (2014-08-05 20:04:30 UTC) #35
danakj
Thanks! LGTM w/ a couple comments https://codereview.chromium.org/388643002/diff/340001/cc/layers/video_layer.h File cc/layers/video_layer.h (right): https://codereview.chromium.org/388643002/diff/340001/cc/layers/video_layer.h#newcode32 cc/layers/video_layer.h:32: inline media::VideoRotation video_rotation() ...
6 years, 4 months ago (2014-08-05 20:18:21 UTC) #36
scherkus (not reviewing)
https://codereview.chromium.org/388643002/diff/360001/cc/layers/video_layer.h File cc/layers/video_layer.h (right): https://codereview.chromium.org/388643002/diff/360001/cc/layers/video_layer.h#newcode33 cc/layers/video_layer.h:33: explicit VideoLayer(VideoFrameProvider* provider, explicit keyword no longer needed https://codereview.chromium.org/388643002/diff/360001/content/browser/media/media_browsertest.cc ...
6 years, 4 months ago (2014-08-06 23:06:42 UTC) #37
suderman
https://codereview.chromium.org/388643002/diff/360001/cc/layers/video_layer.h File cc/layers/video_layer.h (right): https://codereview.chromium.org/388643002/diff/360001/cc/layers/video_layer.h#newcode33 cc/layers/video_layer.h:33: explicit VideoLayer(VideoFrameProvider* provider, On 2014/08/06 23:06:42, scherkus wrote: > ...
6 years, 4 months ago (2014-08-07 00:31:31 UTC) #38
scherkus (not reviewing)
https://codereview.chromium.org/388643002/diff/360001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/360001/content/browser/media/media_browsertest.cc#newcode57 content/browser/media/media_browsertest.cc:57: title_watcher.AlsoWaitForTitle(base::ASCIIToUTF16(expected_title)); On 2014/08/07 00:31:31, suderman wrote: > On 2014/08/06 ...
6 years, 4 months ago (2014-08-07 00:38:49 UTC) #39
suderman
https://codereview.chromium.org/388643002/diff/360001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/360001/content/browser/media/media_browsertest.cc#newcode57 content/browser/media/media_browsertest.cc:57: title_watcher.AlsoWaitForTitle(base::ASCIIToUTF16(expected_title)); On 2014/08/07 00:38:48, scherkus wrote: > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 00:49:36 UTC) #40
scherkus (not reviewing)
https://codereview.chromium.org/388643002/diff/390001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/390001/content/browser/media/media_browsertest.cc#newcode102 content/browser/media/media_browsertest.cc:102: void RunVideoSizeTest(const char* media_file, bool http, remove http param ...
6 years, 4 months ago (2014-08-07 00:55:47 UTC) #41
suderman
https://codereview.chromium.org/388643002/diff/390001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/390001/content/browser/media/media_browsertest.cc#newcode102 content/browser/media/media_browsertest.cc:102: void RunVideoSizeTest(const char* media_file, bool http, On 2014/08/07 00:55:46, ...
6 years, 4 months ago (2014-08-07 00:58:41 UTC) #42
scherkus (not reviewing)
https://codereview.chromium.org/388643002/diff/410001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/410001/content/browser/media/media_browsertest.cc#newcode102 content/browser/media/media_browsertest.cc:102: void RunVideoSizeTest(const char* media_file, bool http, Drop the http ...
6 years, 4 months ago (2014-08-07 01:10:45 UTC) #43
suderman
https://codereview.chromium.org/388643002/diff/410001/content/browser/media/media_browsertest.cc File content/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/388643002/diff/410001/content/browser/media/media_browsertest.cc#newcode102 content/browser/media/media_browsertest.cc:102: void RunVideoSizeTest(const char* media_file, bool http, On 2014/08/07 01:10:44, ...
6 years, 4 months ago (2014-08-07 01:15:24 UTC) #44
scherkus (not reviewing)
lgtm
6 years, 4 months ago (2014-08-07 18:42:59 UTC) #45
suderman
The CQ bit was checked by suderman@chromium.org
6 years, 4 months ago (2014-08-07 19:01:57 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/suderman@chromium.org/388643002/430001
6 years, 4 months ago (2014-08-07 19:07:05 UTC) #47
suderman
The CQ bit was unchecked by suderman@chromium.org
6 years, 4 months ago (2014-08-07 20:15:01 UTC) #48
suderman
The CQ bit was checked by suderman@chromium.org
6 years, 4 months ago (2014-08-07 20:16:26 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/suderman@chromium.org/388643002/450001
6 years, 4 months ago (2014-08-07 20:26:51 UTC) #50
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 01:24:52 UTC) #51
Message was sent while issue was closed.
Change committed as 288194

Powered by Google App Engine
This is Rietveld 408576698