OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <dlfcn.h> | 8 #include <dlfcn.h> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Notifies the client that the decoder was reset. | 95 // Notifies the client that the decoder was reset. |
96 void NotifyResetDone(); | 96 void NotifyResetDone(); |
97 | 97 |
98 // Notifies about decoding errors. | 98 // Notifies about decoding errors. |
99 void NotifyError(media::VideoDecodeAccelerator::Error error); | 99 void NotifyError(media::VideoDecodeAccelerator::Error error); |
100 | 100 |
101 // Used to DCHECK that we are called on the correct thread. | 101 // Used to DCHECK that we are called on the correct thread. |
102 base::ThreadChecker thread_checker_; | 102 base::ThreadChecker thread_checker_; |
103 | 103 |
| 104 // GPU child message loop proxy. |
| 105 scoped_refptr<base::MessageLoopProxy> child_message_loop_; |
| 106 |
104 // To expose client callbacks from VideoDecodeAccelerator. | 107 // To expose client callbacks from VideoDecodeAccelerator. |
105 Client* client_; | 108 Client* client_; |
106 | 109 |
107 // Callback to set the correct gl context. | 110 // Callback to set the correct gl context. |
108 base::Callback<bool(void)> make_context_current_; | 111 base::Callback<bool(void)> make_context_current_; |
109 | 112 |
110 // Codec type. Used when we configure media codec. | 113 // Codec type. Used when we configure media codec. |
111 media::VideoCodec codec_; | 114 media::VideoCodec codec_; |
112 | 115 |
113 // The current state of this class. For now, this is used only for setting | 116 // The current state of this class. For now, this is used only for setting |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 165 |
163 // Used for copy the texture from |surface_texture_| to picture buffers. | 166 // Used for copy the texture from |surface_texture_| to picture buffers. |
164 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; | 167 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; |
165 | 168 |
166 friend class AndroidVideoDecodeAcceleratorTest; | 169 friend class AndroidVideoDecodeAcceleratorTest; |
167 }; | 170 }; |
168 | 171 |
169 } // namespace content | 172 } // namespace content |
170 | 173 |
171 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 174 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |