OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 public media::VideoDecodeAccelerator::Client { | 32 public media::VideoDecodeAccelerator::Client { |
33 public: | 33 public: |
34 virtual ~PPB_VideoDecoder_Impl(); | 34 virtual ~PPB_VideoDecoder_Impl(); |
35 // See PPB_VideoDecoder_Dev::Create. Returns 0 on failure to create & | 35 // See PPB_VideoDecoder_Dev::Create. Returns 0 on failure to create & |
36 // initialize. | 36 // initialize. |
37 static PP_Resource Create(PP_Instance instance, | 37 static PP_Resource Create(PP_Instance instance, |
38 PP_Resource graphics_context, | 38 PP_Resource graphics_context, |
39 PP_VideoDecoder_Profile profile); | 39 PP_VideoDecoder_Profile profile); |
40 | 40 |
41 // PPB_VideoDecoder_API implementation. | 41 // PPB_VideoDecoder_API implementation. |
42 virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, | 42 virtual int32_t Decode( |
43 PP_CompletionCallback callback) OVERRIDE; | 43 const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, |
| 44 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
44 virtual void AssignPictureBuffers( | 45 virtual void AssignPictureBuffers( |
45 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; | 46 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; |
46 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; | 47 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; |
47 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; | 48 virtual int32_t Flush( |
48 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; | 49 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
| 50 virtual int32_t Reset( |
| 51 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
49 virtual void Destroy() OVERRIDE; | 52 virtual void Destroy() OVERRIDE; |
50 | 53 |
51 // media::VideoDecodeAccelerator::Client implementation. | 54 // media::VideoDecodeAccelerator::Client implementation. |
52 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers, | 55 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers, |
53 const gfx::Size& dimensions, | 56 const gfx::Size& dimensions, |
54 uint32 texture_target) OVERRIDE; | 57 uint32 texture_target) OVERRIDE; |
55 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 58 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
56 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 59 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
57 virtual void NotifyInitializeDone() OVERRIDE; | 60 virtual void NotifyInitializeDone() OVERRIDE; |
58 virtual void NotifyError( | 61 virtual void NotifyError( |
(...skipping 16 matching lines...) Expand all Loading... |
75 // Reference to the plugin requesting this interface. | 78 // Reference to the plugin requesting this interface. |
76 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 79 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
77 | 80 |
78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 81 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
79 }; | 82 }; |
80 | 83 |
81 } // namespace ppapi | 84 } // namespace ppapi |
82 } // namespace webkit | 85 } // namespace webkit |
83 | 86 |
84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 87 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |