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

Issue 7474006: PPB_VideoDecoder_Dev::Initialize is now synchronous! (Closed)

Created:
9 years, 4 months ago by Ami GONE FROM CHROMIUM
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), piman+watch_chromium.org, scherkus (not reviewing), cfreeman, vjain, vhiremath
Visibility:
Public.

Description

PPB_VideoDecoder_Dev::Initialize is now synchronous! Apparently flash can't deal with async init, so we make it synchronous. We keep processing in the GPU process asynchronous and just take the blocking hit on the renderer. BUG=none TEST=gles2, ovdatest, trybots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94730

Patch Set 1 #

Total comments: 6

Patch Set 2 : piman CR update. #

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : vrk CR update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -152 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 chunks +2 lines, -5 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.h View 2 chunks +9 lines, -2 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 3 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/gpu/gpu_video_decode_accelerator_host.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/gpu/gpu_video_decode_accelerator_host.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/pepper_platform_video_decoder_impl.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/c/dev/ppb_video_decoder_dev.h View 1 3 chunks +9 lines, -23 lines 0 comments Download
M ppapi/cpp/dev/video_decoder_dev.h View 1 2 3 1 chunk +5 lines, -9 lines 0 comments Download
M ppapi/cpp/dev/video_decoder_dev.cc View 1 2 chunks +4 lines, -13 lines 0 comments Download
M ppapi/examples/gles2/gles2.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/tests/arch_dependent_sizes_32.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/arch_dependent_sizes_64.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_video_decoder.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/tests/test_video_decoder.cc View 1 2 3 1 chunk +6 lines, -14 lines 0 comments Download
M ppapi/thunk/ppb_video_decoder_api.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/thunk/ppb_video_decoder_thunk.cc View 1 3 chunks +4 lines, -15 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.h View 1 2 3 3 chunks +10 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 1 3 chunks +22 lines, -24 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ami GONE FROM CHROMIUM
brettw: OWNERS please piman: FYI & for flash-side sanity-check vrk: please review
9 years, 4 months ago (2011-07-28 23:27:41 UTC) #1
piman
LGTM with the approach. A few suggestions... http://codereview.chromium.org/7474006/diff/1/content/common/gpu/gpu_messages.h File content/common/gpu/gpu_messages.h (right): http://codereview.chromium.org/7474006/diff/1/content/common/gpu/gpu_messages.h#newcode500 content/common/gpu/gpu_messages.h:500: IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_InitializeDone) This ...
9 years, 4 months ago (2011-07-28 23:40:55 UTC) #2
brettw
It kind of sucks to have to block the renderer while we do this. And ...
9 years, 4 months ago (2011-07-28 23:42:22 UTC) #3
brettw
Antoine: do you have an opinion on what we should do for the blocking init?
9 years, 4 months ago (2011-07-28 23:43:06 UTC) #4
piman
On Thu, Jul 28, 2011 at 4:43 PM, <brettw@chromium.org> wrote: > Antoine: do you have ...
9 years, 4 months ago (2011-07-28 23:49:51 UTC) #5
brettw
I get the deadlock, thanks. For future reference, is there something in here that requires ...
9 years, 4 months ago (2011-07-28 23:59:33 UTC) #6
piman
On Thu, Jul 28, 2011 at 4:59 PM, <brettw@chromium.org> wrote: > I get the deadlock, ...
9 years, 4 months ago (2011-07-29 00:07:19 UTC) #7
Ami GONE FROM CHROMIUM
brettw / piman: PTAL Thanks for the quick turnaround! http://codereview.chromium.org/7474006/diff/1/content/common/gpu/gpu_messages.h File content/common/gpu/gpu_messages.h (right): http://codereview.chromium.org/7474006/diff/1/content/common/gpu/gpu_messages.h#newcode500 content/common/gpu/gpu_messages.h:500: ...
9 years, 4 months ago (2011-07-29 05:58:47 UTC) #8
brettw
owners LGTM
9 years, 4 months ago (2011-07-29 06:17:42 UTC) #9
piman
LGTM, thanks !
9 years, 4 months ago (2011-07-29 06:53:26 UTC) #10
vrk (LEFT CHROMIUM)
LGTM http://codereview.chromium.org/7474006/diff/4006/ppapi/cpp/dev/video_decoder_dev.h File ppapi/cpp/dev/video_decoder_dev.h (right): http://codereview.chromium.org/7474006/diff/4006/ppapi/cpp/dev/video_decoder_dev.h#newcode30 ppapi/cpp/dev/video_decoder_dev.h:30: // |instance| is the pointer to the plug-in ...
9 years, 4 months ago (2011-07-29 18:11:02 UTC) #11
Ami GONE FROM CHROMIUM
9 years, 4 months ago (2011-07-29 18:20:41 UTC) #12
http://codereview.chromium.org/7474006/diff/4006/ppapi/cpp/dev/video_decoder_...
File ppapi/cpp/dev/video_decoder_dev.h (right):

http://codereview.chromium.org/7474006/diff/4006/ppapi/cpp/dev/video_decoder_...
ppapi/cpp/dev/video_decoder_dev.h:30: //  |instance| is the pointer to the
plug-in instance.
On 2011/07/29 18:11:02, Victoria Kirst wrote:
> document added params?

Actually removed existing doco in favor of pointer.

http://codereview.chromium.org/7474006/diff/4006/ppapi/examples/gles2/gles2.cc
File ppapi/examples/gles2/gles2.cc (right):

http://codereview.chromium.org/7474006/diff/4006/ppapi/examples/gles2/gles2.c...
ppapi/examples/gles2/gles2.cc:220: assert(!video_decoder_->is_null());
On 2011/07/29 18:11:02, Victoria Kirst wrote:
> nit: is there any way for this to fail?

In this plugin, not really, b/c we already assert that *context_ is valid
earlier, but this is a sample plugin so I think it's useful to be as explicit as
possible about the things that can/ought to be checked.

http://codereview.chromium.org/7474006/diff/4006/ppapi/tests/test_video_decod...
File ppapi/tests/test_video_decoder.cc (right):

http://codereview.chromium.org/7474006/diff/4006/ppapi/tests/test_video_decod...
ppapi/tests/test_video_decoder.cc:33: return "Create: error detecting invalid
context";
On 2011/07/29 18:11:02, Victoria Kirst wrote:
> nit: technically the configs are invalid, too. Dunno if you care.

I don't, but done.

http://codereview.chromium.org/7474006/diff/4006/webkit/plugins/ppapi/ppb_vid...
File webkit/plugins/ppapi/ppb_video_decoder_impl.h (right):

http://codereview.chromium.org/7474006/diff/4006/webkit/plugins/ppapi/ppb_vid...
webkit/plugins/ppapi/ppb_video_decoder_impl.h:42: static PP_Resource
Create(PluginInstance* instance,
On 2011/07/29 18:11:02, Victoria Kirst wrote:
> comment? Perhaps mention that it returns 0 if it fails to create + init

Done.

Powered by Google App Engine
This is Rietveld 408576698