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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 bool needs_protected_surface_ = false; | 177 bool needs_protected_surface_ = false; |
178 | 178 |
179 // The surface that MediaCodec is configured to output to. It's created by | 179 // The surface that MediaCodec is configured to output to. It's created by |
180 // the backing strategy. | 180 // the backing strategy. |
181 gfx::ScopedJavaSurface surface_; | 181 gfx::ScopedJavaSurface surface_; |
182 | 182 |
183 // The MediaCrypto object is used in the MediaCodec.configure() in case of | 183 // The MediaCrypto object is used in the MediaCodec.configure() in case of |
184 // an encrypted stream. | 184 // an encrypted stream. |
185 media::MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_; | 185 media::MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_; |
186 | 186 |
| 187 // Initial coded size. The actual size might change at any time, so this |
| 188 // is only a hint. |
| 189 gfx::Size initial_expected_coded_size_; |
| 190 |
187 protected: | 191 protected: |
188 friend class base::RefCountedThreadSafe<CodecConfig>; | 192 friend class base::RefCountedThreadSafe<CodecConfig>; |
189 virtual ~CodecConfig(); | 193 virtual ~CodecConfig(); |
190 | 194 |
191 private: | 195 private: |
192 DISALLOW_COPY_AND_ASSIGN(CodecConfig); | 196 DISALLOW_COPY_AND_ASSIGN(CodecConfig); |
193 }; | 197 }; |
194 | 198 |
195 // Configures |media_codec_| with the given codec parameters from the client. | 199 // Configures |media_codec_| with the given codec parameters from the client. |
196 // This configuration will (probably) not be complete before this call | 200 // This configuration will (probably) not be complete before this call |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 384 |
381 // WeakPtrFactory for posting tasks back to |this|. | 385 // WeakPtrFactory for posting tasks back to |this|. |
382 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 386 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
383 | 387 |
384 friend class AndroidVideoDecodeAcceleratorTest; | 388 friend class AndroidVideoDecodeAcceleratorTest; |
385 }; | 389 }; |
386 | 390 |
387 } // namespace content | 391 } // namespace content |
388 | 392 |
389 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 393 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |