| 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 PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
| 6 #define PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // PPB_VideoDecoder_API implementation. | 38 // PPB_VideoDecoder_API implementation. |
| 39 virtual void Destroy() OVERRIDE; | 39 virtual void Destroy() OVERRIDE; |
| 40 | 40 |
| 41 // Copy C-style config list into |out_configs| vector. | 41 // Copy C-style config list into |out_configs| vector. |
| 42 static bool CopyConfigsToVector( | 42 static bool CopyConfigsToVector( |
| 43 const PP_VideoConfigElement* configs_to_copy, | 43 const PP_VideoConfigElement* configs_to_copy, |
| 44 std::vector<PP_VideoConfigElement>* out_configs); | 44 std::vector<PP_VideoConfigElement>* out_configs); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 void SetFlushCallback(PP_CompletionCallback callback); | 47 bool SetFlushCallback(PP_CompletionCallback callback); |
| 48 void SetResetCallback(PP_CompletionCallback callback); | 48 bool SetResetCallback(PP_CompletionCallback callback); |
| 49 void SetBitstreamBufferCallback( | 49 bool SetBitstreamBufferCallback( |
| 50 int32 bitstream_buffer_id, PP_CompletionCallback callback); | 50 int32 bitstream_buffer_id, PP_CompletionCallback callback); |
| 51 | 51 |
| 52 void RunFlushCallback(int32 result); | 52 void RunFlushCallback(int32 result); |
| 53 void RunResetCallback(int32 result); | 53 void RunResetCallback(int32 result); |
| 54 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result); | 54 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result); |
| 55 | 55 |
| 56 // Tell command buffer to process all commands it has received so far. | 56 // Tell command buffer to process all commands it has received so far. |
| 57 void FlushCommandBuffer(); | 57 void FlushCommandBuffer(); |
| 58 | 58 |
| 59 // Initialize the underlying decoder and return success status. | 59 // Initialize the underlying decoder and return success status. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 84 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin | 84 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin |
| 85 // process only, so gles2_impl_ is NULL in that case. | 85 // process only, so gles2_impl_ is NULL in that case. |
| 86 gpu::gles2::GLES2Implementation* gles2_impl_; | 86 gpu::gles2::GLES2Implementation* gles2_impl_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); | 88 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace ppapi | 91 } // namespace ppapi |
| 92 | 92 |
| 93 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 93 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |