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

Issue 3335014: Added FakeGlVideoDecodeEngine to exercise the IPC protocol for hardware video decoding (Closed)

Created:
10 years, 3 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews, fbarchard, apatrick_chromium, darin-cc_chromium.org, awong, brettw-cc_chromium.org, scherkus (not reviewing), Paweł Hajdan Jr., Alpha Left Google, pam+watch_chromium.org
Visibility:
Public.

Description

Added FakeGlVideoDecodeEngine to exercise the IPC protocol for hardware video decoding There are several things done in this patch: 1. Added FakeGlVideoDecodeEngine 2. Fixed style problem in VideoDecodeEngine and gpu_video_common.h 3. Added route to pass texture from gpu process to WebKit BUG=53714 TEST=Tree is green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59223

Patch Set 1 #

Total comments: 18

Patch Set 2 : more comments #

Patch Set 3 : new files #

Total comments: 3

Patch Set 4 : added a todo #

Total comments: 6

Patch Set 5 : removed GLES2 from some comments #

Patch Set 6 : fix compile #

Patch Set 7 : comments #

Patch Set 8 : sigh.. more fixes needed.. :( #

Patch Set 9 : video frame again #

Patch Set 10 : compile man... #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+666 lines, -364 lines) Patch
M chrome/chrome.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/gpu_video_common.h View 3 chunks +48 lines, -51 lines 0 comments Download
M chrome/common/gpu_video_common.cc View 5 chunks +60 lines, -57 lines 0 comments Download
M chrome/gpu/gpu_channel.cc View 1 chunk +5 lines, -9 lines 0 comments Download
M chrome/gpu/gpu_video_decoder.h View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/gpu/gpu_video_decoder.cc View 1 2 3 4 5 6 7 8 7 chunks +70 lines, -52 lines 0 comments Download
A chrome/gpu/media/fake_gl_video_decode_engine.h View 1 chunk +37 lines, -0 lines 1 comment Download
A chrome/gpu/media/fake_gl_video_decode_engine.cc View 3 1 chunk +88 lines, -0 lines 1 comment Download
M chrome/renderer/gpu_video_decoder_host.cc View 1 2 3 4 5 6 7 8 4 chunks +39 lines, -19 lines 0 comments Download
M chrome/renderer/gpu_video_service_host.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/renderer/media/gles2_video_decode_context.h View 1 2 3 4 5 6 4 chunks +17 lines, -12 lines 0 comments Download
M chrome/renderer/media/gles2_video_decode_context.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/media/ipc_video_decoder.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/media/ipc_video_decoder.cc View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -7 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 4 5 6 7 8 5 chunks +38 lines, -1 line 1 comment Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 9 4 chunks +68 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 3 chunks +14 lines, -14 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/omx_video_decoder.cc View 3 chunks +13 lines, -13 lines 0 comments Download
M media/mf/mft_h264_decoder.cc View 5 chunks +18 lines, -18 lines 0 comments Download
M media/mf/mft_h264_decoder_example.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M media/mf/test/mft_h264_decoder_unittest.cc View 14 chunks +31 lines, -31 lines 0 comments Download
M media/tools/omx_test/omx_test.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine.cc View 4 chunks +10 lines, -10 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine_unittest.cc View 4 5 4 chunks +20 lines, -20 lines 0 comments Download
M media/video/omx_video_decode_engine.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M media/video/video_decode_engine.h View 1 chunk +23 lines, -19 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Alpha Left Google
10 years, 3 months ago (2010-09-09 02:03:00 UTC) #1
Alpha Left Google
Note that the way textures are passed around is really hacky now. I'm working on ...
10 years, 3 months ago (2010-09-09 02:04:11 UTC) #2
jiesun
you had missed some files, I guess. also I am concerned if you could always ...
10 years, 3 months ago (2010-09-09 17:19:08 UTC) #3
Alpha Left Google
http://codereview.chromium.org/3335014/diff/1/4 File chrome/common/gpu_video_common.h (right): http://codereview.chromium.org/3335014/diff/1/4#newcode85 chrome/common/gpu_video_common.h:85: // to be consumed. Before that we need API ...
10 years, 3 months ago (2010-09-09 19:10:58 UTC) #4
Alpha Left Google
On 2010/09/09 17:19:08, jiesun wrote: > you had missed some files, I guess. > > ...
10 years, 3 months ago (2010-09-09 19:12:59 UTC) #5
Alpha Left Google
Add fake_gl_video_decode_engine.{cc, h}
10 years, 3 months ago (2010-09-09 20:01:34 UTC) #6
jiesun
is this patch able to run and let us see the random pattern somehow, or ...
10 years, 3 months ago (2010-09-10 17:30:21 UTC) #7
Alpha Left Google
On 2010/09/10 17:30:21, jiesun wrote: > is this patch able to run and let us ...
10 years, 3 months ago (2010-09-10 18:33:06 UTC) #8
jiesun
Okay, I was expecting to see "proofs" for this "proof-of-concept" patch.:) Could you please point ...
10 years, 3 months ago (2010-09-10 19:47:12 UTC) #9
Alpha Left Google
On 2010/09/10 19:47:12, jiesun wrote: > Okay, I was expecting to see "proofs" for this ...
10 years, 3 months ago (2010-09-10 20:01:31 UTC) #10
jiesun
On 2010/09/10 20:01:31, Alpha wrote: > On 2010/09/10 19:47:12, jiesun wrote: > > Okay, I ...
10 years, 3 months ago (2010-09-10 20:51:03 UTC) #11
Alpha Left Google
On 2010/09/10 20:51:03, jiesun wrote: > On 2010/09/10 20:01:31, Alpha wrote: > > On 2010/09/10 ...
10 years, 3 months ago (2010-09-10 21:57:19 UTC) #12
jiesun
LGTM if you fix those comments and certainly bots really go green. I prefer change ...
10 years, 3 months ago (2010-09-10 22:55:11 UTC) #13
Alpha Left Google
http://codereview.chromium.org/3335014/diff/10002/4013 File chrome/renderer/media/gles2_video_decode_context.h (right): http://codereview.chromium.org/3335014/diff/10002/4013#newcode17 chrome/renderer/media/gles2_video_decode_context.h:17: // This is a class that provides a video ...
10 years, 3 months ago (2010-09-11 02:00:28 UTC) #14
scherkus (not reviewing)
10 years, 3 months ago (2010-09-13 07:19:22 UTC) #15
LGTM w/ nits

thanks for fixing style stuff, but next time try to keep those patches separate
from patches that introduce/change code

http://codereview.chromium.org/3335014/diff/4026/35007
File chrome/gpu/media/fake_gl_video_decode_engine.cc (right):

http://codereview.chromium.org/3335014/diff/4026/35007#newcode66
chrome/gpu/media/fake_gl_video_decode_engine.cc:66: static int seed = 0;
just use a uint8 and let it overflow?

but to be honest I don't really care -- as long as pixels go up on the screen :)

http://codereview.chromium.org/3335014/diff/4026/35008
File chrome/gpu/media/fake_gl_video_decode_engine.h (right):

http://codereview.chromium.org/3335014/diff/4026/35008#newcode35
chrome/gpu/media/fake_gl_video_decode_engine.h:35: };
DISALLOW_COPY_AND_ASSIGN

http://codereview.chromium.org/3335014/diff/4026/35016
File media/base/video_frame.h (right):

http://codereview.chromium.org/3335014/diff/4026/35016#newcode172
media/base/video_frame.h:172: uint8* data_[kMaxPlanes];
at some point we may want to consider using a union to join
data_/gl_textures_/d3d_textures_ together to reduce the size of a video frame
class

same with private_buffer_ as well

add a TODO, perhaps?

Powered by Google App Engine
This is Rietveld 408576698