| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "ppapi/c/dev/ppb_video_decoder_dev.h" | 13 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
| 14 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.h" |
| 15 #include "ppapi/thunk/ppb_video_decoder_api.h" | 15 #include "ppapi/thunk/ppb_video_decoder_api.h" |
| 16 | 16 |
| 17 namespace gpu { | 17 namespace gpu { |
| 18 namespace gles2 { | 18 namespace gles2 { |
| 19 class GLES2Implementation; | 19 class GLES2Implementation; |
| 20 } // namespace gles2 | 20 } // namespace gles2 |
| 21 } // namespace gpu | 21 } // namespace gpu |
| 22 | 22 |
| 23 namespace ppapi { | 23 namespace ppapi { |
| 24 namespace thunk { | |
| 25 class PPB_Context3D_API; | |
| 26 } // namespace thunk | |
| 27 } // namespace ppapi | |
| 28 | |
| 29 namespace ppapi { | |
| 30 | 24 |
| 31 // Implements the logic to set and run callbacks for various video decoder | 25 // Implements the logic to set and run callbacks for various video decoder |
| 32 // events. Both the proxy and the renderer implementation share this code. | 26 // events. Both the proxy and the renderer implementation share this code. |
| 33 class PPAPI_SHARED_EXPORT VideoDecoderImpl | 27 class PPAPI_SHARED_EXPORT VideoDecoderImpl |
| 34 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) { | 28 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) { |
| 35 public: | 29 public: |
| 36 VideoDecoderImpl(); | 30 VideoDecoderImpl(); |
| 37 virtual ~VideoDecoderImpl(); | 31 virtual ~VideoDecoderImpl(); |
| 38 | 32 |
| 39 // PPB_VideoDecoder_API implementation. | 33 // PPB_VideoDecoder_API implementation. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin | 68 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin |
| 75 // process only, so gles2_impl_ is NULL in that case. | 69 // process only, so gles2_impl_ is NULL in that case. |
| 76 gpu::gles2::GLES2Implementation* gles2_impl_; | 70 gpu::gles2::GLES2Implementation* gles2_impl_; |
| 77 | 71 |
| 78 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); | 72 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); |
| 79 }; | 73 }; |
| 80 | 74 |
| 81 } // namespace ppapi | 75 } // namespace ppapi |
| 82 | 76 |
| 83 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 77 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |