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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 private: | 53 private: |
54 // Key: bitstream_buffer_id, value: callback to run when bitstream decode is | 54 // Key: bitstream_buffer_id, value: callback to run when bitstream decode is |
55 // done. | 55 // done. |
56 typedef std::map<int32, PP_CompletionCallback> CallbackById; | 56 typedef std::map<int32, PP_CompletionCallback> CallbackById; |
57 | 57 |
58 PP_CompletionCallback flush_callback_; | 58 PP_CompletionCallback flush_callback_; |
59 PP_CompletionCallback reset_callback_; | 59 PP_CompletionCallback reset_callback_; |
60 CallbackById bitstream_buffer_callbacks_; | 60 CallbackById bitstream_buffer_callbacks_; |
61 | 61 |
62 // The resource ID of the underlying Context3d object being used. Used only | 62 // The resource ID of the underlying Graphics3D object being used. Used only |
63 // for reference counting to keep it alive for the lifetime of |*this|. | 63 // for reference counting to keep it alive for the lifetime of |*this|. |
64 PP_Resource graphics_context_; | 64 PP_Resource graphics_context_; |
65 | 65 |
66 // Reference to the GLES2Implementation owned by |context3d_id_|. | 66 // Reference to the GLES2Implementation owned by |graphics_context_|. |
67 // Context3D is guaranteed to be alive for the lifetime of this class. | 67 // Graphics3D is guaranteed to be alive for the lifetime of this class. |
68 // In the out-of-process case, Context3D's gles2_impl() exists in the plugin | 68 // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin |
69 // process only, so gles2_impl_ is NULL in that case. | 69 // process only, so gles2_impl_ is NULL in that case. |
70 gpu::gles2::GLES2Implementation* gles2_impl_; | 70 gpu::gles2::GLES2Implementation* gles2_impl_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); | 72 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace ppapi | 75 } // namespace ppapi |
76 | 76 |
77 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ | 77 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ |
OLD | NEW |