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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, | 42 virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, |
43 PP_CompletionCallback callback) OVERRIDE; | 43 PP_CompletionCallback callback) OVERRIDE; |
44 virtual void AssignPictureBuffers( | 44 virtual void AssignPictureBuffers( |
45 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; | 45 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; |
46 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; | 46 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; |
47 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; | 47 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; |
48 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; | 48 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; |
49 virtual void Destroy() OVERRIDE; | 49 virtual void Destroy() OVERRIDE; |
50 | 50 |
51 // media::VideoDecodeAccelerator::Client implementation. | 51 // media::VideoDecodeAccelerator::Client implementation. |
52 virtual void ProvidePictureBuffers( | 52 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers, |
53 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; | 53 const gfx::Size& dimensions, |
| 54 uint32 texture_target) OVERRIDE; |
54 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 55 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
55 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 56 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
56 virtual void NotifyInitializeDone() OVERRIDE; | 57 virtual void NotifyInitializeDone() OVERRIDE; |
57 virtual void NotifyError( | 58 virtual void NotifyError( |
58 media::VideoDecodeAccelerator::Error error) OVERRIDE; | 59 media::VideoDecodeAccelerator::Error error) OVERRIDE; |
59 virtual void NotifyFlushDone() OVERRIDE; | 60 virtual void NotifyFlushDone() OVERRIDE; |
60 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; | 61 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; |
61 virtual void NotifyResetDone() OVERRIDE; | 62 virtual void NotifyResetDone() OVERRIDE; |
62 | 63 |
63 private: | 64 private: |
(...skipping 10 matching lines...) Expand all Loading... |
74 // Reference to the plugin requesting this interface. | 75 // Reference to the plugin requesting this interface. |
75 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 76 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace ppapi | 81 } // namespace ppapi |
81 } // namespace webkit | 82 } // namespace webkit |
82 | 83 |
83 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |