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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 PP_CompletionCallback callback) OVERRIDE; | 47 PP_CompletionCallback callback) OVERRIDE; |
48 virtual void AssignPictureBuffers( | 48 virtual void AssignPictureBuffers( |
49 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; | 49 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; |
50 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; | 50 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; |
51 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; | 51 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; |
52 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; | 52 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; |
53 virtual void Destroy() OVERRIDE; | 53 virtual void Destroy() OVERRIDE; |
54 | 54 |
55 // media::VideoDecodeAccelerator::Client implementation. | 55 // media::VideoDecodeAccelerator::Client implementation. |
56 virtual void ProvidePictureBuffers( | 56 virtual void ProvidePictureBuffers( |
57 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; | 57 uint32 requested_num_of_buffers, |
| 58 const gfx::Size& dimensions, |
| 59 media::VideoDecodeAccelerator::TextureTarget texture_target) OVERRIDE; |
58 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 60 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
59 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 61 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
60 virtual void NotifyInitializeDone() OVERRIDE; | 62 virtual void NotifyInitializeDone() OVERRIDE; |
61 virtual void NotifyError( | 63 virtual void NotifyError( |
62 media::VideoDecodeAccelerator::Error error) OVERRIDE; | 64 media::VideoDecodeAccelerator::Error error) OVERRIDE; |
63 virtual void NotifyFlushDone() OVERRIDE; | 65 virtual void NotifyFlushDone() OVERRIDE; |
64 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; | 66 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; |
65 virtual void NotifyResetDone() OVERRIDE; | 67 virtual void NotifyResetDone() OVERRIDE; |
66 | 68 |
67 private: | 69 private: |
(...skipping 12 matching lines...) Expand all Loading... |
80 // Reference to the plugin requesting this interface. | 82 // Reference to the plugin requesting this interface. |
81 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 83 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 85 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace ppapi | 88 } // namespace ppapi |
87 } // namespace webkit | 89 } // namespace webkit |
88 | 90 |
89 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 91 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |