| 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 21 matching lines...) Expand all Loading... |
| 32 // events. Both the proxy and the renderer implementation share this code. | 32 // events. Both the proxy and the renderer implementation share this code. |
| 33 class PPAPI_SHARED_EXPORT VideoDecoderImpl | 33 class PPAPI_SHARED_EXPORT VideoDecoderImpl |
| 34 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) { | 34 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) { |
| 35 public: | 35 public: |
| 36 VideoDecoderImpl(); | 36 VideoDecoderImpl(); |
| 37 virtual ~VideoDecoderImpl(); | 37 virtual ~VideoDecoderImpl(); |
| 38 | 38 |
| 39 // PPB_VideoDecoder_API implementation. | 39 // PPB_VideoDecoder_API implementation. |
| 40 virtual void Destroy() OVERRIDE; | 40 virtual void Destroy() OVERRIDE; |
| 41 | 41 |
| 42 // Copy C-style config list into |out_configs| vector. | |
| 43 static bool CopyConfigsToVector( | |
| 44 const PP_VideoConfigElement* configs_to_copy, | |
| 45 std::vector<PP_VideoConfigElement>* out_configs); | |
| 46 | |
| 47 protected: | 42 protected: |
| 48 bool SetFlushCallback(PP_CompletionCallback callback); | 43 bool SetFlushCallback(PP_CompletionCallback callback); |
| 49 bool SetResetCallback(PP_CompletionCallback callback); | 44 bool SetResetCallback(PP_CompletionCallback callback); |
| 50 bool SetBitstreamBufferCallback( | 45 bool SetBitstreamBufferCallback( |
| 51 int32 bitstream_buffer_id, PP_CompletionCallback callback); | 46 int32 bitstream_buffer_id, PP_CompletionCallback callback); |
| 52 | 47 |
| 53 void RunFlushCallback(int32 result); | 48 void RunFlushCallback(int32 result); |
| 54 void RunResetCallback(int32 result); | 49 void RunResetCallback(int32 result); |
| 55 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result); | 50 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result); |
| 56 | 51 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 79 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin | 74 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin |
| 80 // process only, so gles2_impl_ is NULL in that case. | 75 // process only, so gles2_impl_ is NULL in that case. |
| 81 gpu::gles2::GLES2Implementation* gles2_impl_; | 76 gpu::gles2::GLES2Implementation* gles2_impl_; |
| 82 | 77 |
| 83 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); | 78 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); |
| 84 }; | 79 }; |
| 85 | 80 |
| 86 } // namespace ppapi | 81 } // namespace ppapi |
| 87 | 82 |
| 88 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 83 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |