summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 22:53:39 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 22:53:39 +0000
commitef932ed16a50a6fa0adb801c32f3d4860e880bc9 (patch)
tree76ada28fef125550a957fc868d5cb2a4013b8f93 /webkit/plugins
parent5b8149fa24feeeab86de1b86ee1da6abe68165f4 (diff)
downloadchromium_src-ef932ed16a50a6fa0adb801c32f3d4860e880bc9.zip
chromium_src-ef932ed16a50a6fa0adb801c32f3d4860e880bc9.tar.gz
chromium_src-ef932ed16a50a6fa0adb801c32f3d4860e880bc9.tar.bz2
Draft version of the HW video decode tester and few other changes.
Intention is that this tester can be used to decouple HW decode accelerator integration from running the whole Chrome browser. Features: - Independent GUnit executable, which should be possible to use in autotests. - Mimics Renderer process from Gpu video pipeline perspective. * Test bench contains implementation of FakeClient which essentially mimics Renderer process from the GpuVideoDecodeAccelerator's point of view. * FakeClient runs on it's own thread and will communicate with using the IPC messages that are used also within the real use case. * FakeClient will allocate memories using same SharedMemory stuff as the real Renderer code. * Currently reads H.264 Annex B bitstream from file and parses it to NAL units before feeding to the decoder * TODO: Polish and improving the features and configurability. * TODO: GLES texture allocation for textures. - Allows building various test cases and error behaviour as well both on AcceleratedVideoDecoder interface as well as erroneous behaviour from the client. - Allows also checking expected order of calls if we want to enforce certain behaviour across various implementations. Patch by vmr@chromium.org: http://codereview.chromium.org/6720040/ BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r--webkit/plugins/ppapi/ppb_video_decoder_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index 60bed3d..ec2d3f1 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -91,20 +91,20 @@ void ReusePictureBuffer(PP_Resource video_decoder,
decoder->ReusePictureBuffer(picture_buffer);
}
-PP_Bool Flush(PP_Resource decoder_id,
+PP_Bool Flush(PP_Resource video_decoder,
PP_CompletionCallback callback) {
scoped_refptr<PPB_VideoDecoder_Impl> decoder(
- Resource::GetAs<PPB_VideoDecoder_Impl>(decoder_id));
+ Resource::GetAs<PPB_VideoDecoder_Impl>(video_decoder));
if (!decoder)
return PP_FALSE;
return BoolToPPBool(decoder->Flush(callback));
}
-PP_Bool Abort(PP_Resource decoder_id,
+PP_Bool Abort(PP_Resource video_decoder,
PP_CompletionCallback callback) {
scoped_refptr<PPB_VideoDecoder_Impl> decoder(
- Resource::GetAs<PPB_VideoDecoder_Impl>(decoder_id));
+ Resource::GetAs<PPB_VideoDecoder_Impl>(video_decoder));
if (!decoder)
return PP_FALSE;