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

Issue 7057027: Updated OMX decoder for recent PPAPI changes, and added to the build. (Closed)

Created:
9 years, 7 months ago by Ami GONE FROM CHROMIUM
Modified:
9 years, 7 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, ddorwin+watch_chromium.org, fischman+watch_chromium.org, apatrick_chromium, acolwell GONE FROM CHROMIUM, annacc, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), mheikkinen1, Ville-Mikko Rautio
Visibility:
Public.

Description

Updated OMX decoder for recent PPAPI changes, and added to the build. Had to move from content/gpu to content/common/gpu to allow gpu_video_service.cc to depend on the decoder. Removed some dead code and did some random cleanup while I was in there. BUG=none TEST=chrome compiles on cros/arm! Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86681

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated include guards. #

Total comments: 3

Patch Set 3 : TODOd the removal of Picture::bitstream_buffer_id_. #

Total comments: 1

Patch Set 4 : rebased to ToT r86339 #

Total comments: 16

Patch Set 5 : vrk CR responses. #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -196 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +0 lines, -16 lines 0 comments Download
M content/common/gpu/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + content/common/gpu/gles2_texture_to_egl_image_translator.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
A + content/common/gpu/gles2_texture_to_egl_image_translator.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_video_decode_accelerator.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_video_decode_accelerator.cc View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_video_service.cc View 2 chunks +8 lines, -0 lines 0 comments Download
A + content/common/gpu/omx_video_decode_accelerator.h View 1 2 3 4 5 chunks +22 lines, -26 lines 0 comments Download
A + content/common/gpu/omx_video_decode_accelerator.cc View 1 2 3 4 5 21 chunks +94 lines, -97 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M content/gpu/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/gpu_video_decode_accelerator_host.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/pepper_platform_video_decoder_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M media/video/picture.h View 1 2 5 chunks +10 lines, -19 lines 0 comments Download
M media/video/picture.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Ami GONE FROM CHROMIUM
9 years, 7 months ago (2011-05-20 22:59:52 UTC) #1
vhiremath
Notify events look better over callbacks. I just have couple of doubts as in comments. ...
9 years, 7 months ago (2011-05-23 14:43:14 UTC) #2
Ami GONE FROM CHROMIUM
> Notify events look better over callbacks. I'm not sure if this is a vote ...
9 years, 7 months ago (2011-05-23 15:49:25 UTC) #3
jam
content lgtm (stuff under content/gpu can be looked at with people who're in that OWNERS ...
9 years, 7 months ago (2011-05-23 17:00:42 UTC) #4
Ami GONE FROM CHROMIUM
Thanks John. http://codereview.chromium.org/7057027/diff/1/content/common/gpu/gles2_texture_to_egl_image_translator.h File content/common/gpu/gles2_texture_to_egl_image_translator.h (right): http://codereview.chromium.org/7057027/diff/1/content/common/gpu/gles2_texture_to_egl_image_translator.h#newcode5 content/common/gpu/gles2_texture_to_egl_image_translator.h:5: #ifndef CONTENT_GPU_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_ On 2011/05/23 17:00:43, John Abd-El-Malek ...
9 years, 7 months ago (2011-05-23 17:11:33 UTC) #5
Ken Russell (switch to Gerrit)
LTGM from OWNERS standpoint modulo a few needed comment updates. http://codereview.chromium.org/7057027/diff/6001/content/common/gpu/omx_video_decode_accelerator.cc File content/common/gpu/omx_video_decode_accelerator.cc (right): http://codereview.chromium.org/7057027/diff/6001/content/common/gpu/omx_video_decode_accelerator.cc#newcode639 ...
9 years, 7 months ago (2011-05-23 18:15:59 UTC) #6
Ken Russell (switch to Gerrit)
On 2011/05/23 18:15:59, kbr wrote: > LTGM from OWNERS standpoint modulo a few needed comment ...
9 years, 7 months ago (2011-05-23 18:18:58 UTC) #7
Ami GONE FROM CHROMIUM
Added TODOs. Thanks.
9 years, 7 months ago (2011-05-23 18:21:24 UTC) #8
scherkus (not reviewing)
LGTM
9 years, 7 months ago (2011-05-23 21:06:06 UTC) #9
vrk (LEFT CHROMIUM)
Looks good! Had questions on deletion but otherwise LGTM. http://codereview.chromium.org/7057027/diff/11002/content/common/gpu/omx_video_decode_accelerator.cc File content/common/gpu/omx_video_decode_accelerator.cc (right): http://codereview.chromium.org/7057027/diff/11002/content/common/gpu/omx_video_decode_accelerator.cc#newcode545 content/common/gpu/omx_video_decode_accelerator.cc:545: ...
9 years, 7 months ago (2011-05-23 23:35:00 UTC) #10
Ami GONE FROM CHROMIUM
9 years, 7 months ago (2011-05-24 05:31:50 UTC) #11
http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/gpu_video...
File content/common/gpu/gpu_video_decode_accelerator.cc (right):

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/gpu_video...
content/common/gpu/gpu_video_decode_accelerator.cc:153: if
(!video_decode_accelerator_.get()->Flush()) {
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> Remote .get()

Done.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
File content/common/gpu/omx_video_decode_accelerator.cc (right):

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:133: // NOTIMPLEMENTED().
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> Sounds like a good idea to me.

Good.  My plan is to wait until this code actually works in something checked in
(tester, sample plugin, *anything*, as long as it's checked in) and then take
the scalpel to it.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:294: // NOTE: this is only
partially-implemented as it only inspects the first
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> I don't believe the first part of this comment is relevant anymore?

Done.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:302: base_buffers[i] = new
media::GLESBuffer(buffers[i]);
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> How does this get deleted? Looks like it should be deleted when you call
> DismissPictureBuffer.

Done.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:311: base_buffers[i] = new
media::SysmemBuffer(buffers[i]);
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> Same question w/ deletion.

Done.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:640: new
media::Picture(gles_buffer->id(),
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> How does this get deleted? Seems like it should be deleted when you get calls
to
> ReusePictureBuffer. (ReusePictureBuffer will reuse the GLESBuffer or
> SysmemBuffer, but the Picture data structure should be no longer needed.)

AFAIUI this is reused between invocations (i.e. the same Picture will hold
different frames at different times), so I don't think we want to delete in
ReusePictureBuffer.
But we were indeed leaking these.  Now delete'ing in FreeOutputBuffers().

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.cc:656: omx_buffer->pAppPrivate
= new media::Picture(
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> Same question w/ deletion.

Done.

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
File content/common/gpu/omx_video_decode_accelerator.h (right):

http://codereview.chromium.org/7057027/diff/6003/content/common/gpu/omx_video...
content/common/gpu/omx_video_decode_accelerator.h:33: void GetConfigs(const
std::vector<uint32>& requested_configs,
On 2011/05/23 23:35:00, Victoria Kirst wrote:
> Can you add the OVERRIDE macro (in base/compiler_specific.h) to the end of all
> of these methods? Should hopefully catch the next time we have API deviations!

Done.

Powered by Google App Engine
This is Rietveld 408576698