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

Issue 7065010: Add initialization callback support for Video Decoder PPAPI. (Closed)

Created:
9 years, 7 months ago by vrk (LEFT CHROMIUM)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, Jói, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, apatrick_chromium, acolwell GONE FROM CHROMIUM, annacc, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), piman+watch_chromium.org, scherkus (not reviewing), mheikkinen1, Ville-Mikko Rautio, vhiremath
Visibility:
Public.

Description

Add initialization callback support for Video Decoder PPAPI. Initializing a decoder is asynchronous, so add a callback to tell client when the decoder is ready to use. I confirmed that this works locally using a C plugin that I wrote on my machine. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86699

Patch Set 1 #

Patch Set 2 : Delete TODO and bump up the ppb version #

Total comments: 3

Patch Set 3 : Fix CR comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -14 lines) Patch
M content/common/gpu/gpu_messages.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_video_decode_accelerator.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_video_decode_accelerator.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu_video_decode_accelerator_host.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu_video_decode_accelerator_host.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/gpu_video_service_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper_platform_video_decoder_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper_platform_video_decoder_impl.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/c/dev/ppb_video_decoder_dev.h View 1 2 chunks +5 lines, -3 lines 4 comments Download
M ppapi/cpp/dev/video_decoder_dev.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/cpp/dev/video_decoder_dev.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 1 2 5 chunks +18 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
vrk (LEFT CHROMIUM)
Small patch implementing a TODO to add an initialization callback. brettw@ for OWNERS review.
9 years, 7 months ago (2011-05-23 21:29:12 UTC) #1
Ami GONE FROM CHROMIUM
Basically LGTM. http://codereview.chromium.org/7065010/diff/2001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): http://codereview.chromium.org/7065010/diff/2001/media/video/video_decode_accelerator.h#newcode192 media/video/video_decode_accelerator.h:192: // Callback to notify client that decoder ...
9 years, 7 months ago (2011-05-23 21:39:02 UTC) #2
vmr
http://codereview.chromium.org/7065010/diff/2001/content/common/gpu/gpu_video_decode_accelerator.h File content/common/gpu/gpu_video_decode_accelerator.h (right): http://codereview.chromium.org/7065010/diff/2001/content/common/gpu/gpu_video_decode_accelerator.h#newcode6 content/common/gpu/gpu_video_decode_accelerator.h:6: #define CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ NIT: Fix header guard. Also, it is ...
9 years, 7 months ago (2011-05-24 07:16:08 UTC) #3
Ami GONE FROM CHROMIUM
> > Also, it is a bit unclear to me why GpuVideoDecodeAccelerator has been > ...
9 years, 7 months ago (2011-05-24 07:26:28 UTC) #4
brettw
LGTM, be sure to get to Ami's comment about updating the C++ API.
9 years, 7 months ago (2011-05-24 17:25:17 UTC) #5
darin (slow to review)
9 years, 6 months ago (2011-05-31 21:40:46 UTC) #6
http://codereview.chromium.org/7065010/diff/3002/ppapi/c/dev/ppb_video_decode...
File ppapi/c/dev/ppb_video_decoder_dev.h (right):

http://codereview.chromium.org/7065010/diff/3002/ppapi/c/dev/ppb_video_decode...
ppapi/c/dev/ppb_video_decoder_dev.h:137: PP_Resource (*Create)(PP_Instance
instance,
This method is misusing PP_CompletionCallback.  Any function that takes a
PP_CompletionCallback MUST return int32_t, and it must return
PP_OK_COMPLETIONPENDING when it will complete its work asynchronously or PP_OK /
some error code if the completion callback will not run.

In this case, it means that you need to break out a separate "init" method, just
like PPB_URLLoader::Open.

It looks like you already have an Init method under the hood, so this change
should be trivial.

http://codereview.chromium.org/7065010/diff/3002/ppapi/c/dev/ppb_video_decode...
ppapi/c/dev/ppb_video_decoder_dev.h:161: PP_Bool (*Decode)(PP_Resource
video_decoder,
this method signature is also wrong.  it should return int32_t.

http://codereview.chromium.org/7065010/diff/3002/ppapi/c/dev/ppb_video_decode...
ppapi/c/dev/ppb_video_decoder_dev.h:232: PP_Bool (*Flush)(PP_Resource
video_decoder,
ditto

http://codereview.chromium.org/7065010/diff/3002/ppapi/c/dev/ppb_video_decode...
ppapi/c/dev/ppb_video_decoder_dev.h:248: PP_Bool (*Abort)(PP_Resource
video_decoder,
ditto

Powered by Google App Engine
This is Rietveld 408576698