| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void AssignGLESBuffers(uint32_t no_of_buffers, | 52 void AssignGLESBuffers(uint32_t no_of_buffers, |
| 53 PP_GLESBuffer_Dev* buffers); | 53 PP_GLESBuffer_Dev* buffers); |
| 54 void AssignSysmemBuffers(uint32_t no_of_buffers, | 54 void AssignSysmemBuffers(uint32_t no_of_buffers, |
| 55 PP_SysmemBuffer_Dev* buffers); | 55 PP_SysmemBuffer_Dev* buffers); |
| 56 void ReusePictureBuffer(int32_t picture_buffer_id); | 56 void ReusePictureBuffer(int32_t picture_buffer_id); |
| 57 bool Flush(PP_CompletionCallback callback); | 57 bool Flush(PP_CompletionCallback callback); |
| 58 bool Abort(PP_CompletionCallback callback); | 58 bool Abort(PP_CompletionCallback callback); |
| 59 | 59 |
| 60 // media::VideoDecodeAccelerator::Client implementation. | 60 // media::VideoDecodeAccelerator::Client implementation. |
| 61 virtual void ProvidePictureBuffers( | 61 virtual void ProvidePictureBuffers( |
| 62 uint32 requested_num_of_buffers, | 62 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; |
| 63 const gfx::Size& dimensions, | |
| 64 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; | |
| 65 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 63 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 66 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 64 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 67 virtual void NotifyEndOfStream() OVERRIDE; | 65 virtual void NotifyEndOfStream() OVERRIDE; |
| 68 virtual void NotifyError( | 66 virtual void NotifyError( |
| 69 media::VideoDecodeAccelerator::Error error) OVERRIDE; | 67 media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 70 virtual void NotifyFlushDone() OVERRIDE; | 68 virtual void NotifyFlushDone() OVERRIDE; |
| 71 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; | 69 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; |
| 72 virtual void NotifyAbortDone() OVERRIDE; | 70 virtual void NotifyAbortDone() OVERRIDE; |
| 73 | 71 |
| 74 private: | 72 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 86 // Reference to the plugin requesting this interface. | 84 // Reference to the plugin requesting this interface. |
| 87 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 85 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
| 88 | 86 |
| 89 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 87 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace ppapi | 90 } // namespace ppapi |
| 93 } // namespace webkit | 91 } // namespace webkit |
| 94 | 92 |
| 95 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ | 93 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |