From ef932ed16a50a6fa0adb801c32f3d4860e880bc9 Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Thu, 14 Apr 2011 22:53:39 +0000 Subject: 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 --- webkit/plugins/ppapi/ppb_video_decoder_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webkit/plugins') 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 decoder( - Resource::GetAs(decoder_id)); + Resource::GetAs(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 decoder( - Resource::GetAs(decoder_id)); + Resource::GetAs(video_decoder)); if (!decoder) return PP_FALSE; -- cgit v1.1