| 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 MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 // Initial coded size. The actual size might change at any time, so this | 206 // Initial coded size. The actual size might change at any time, so this |
| 207 // is only a hint. | 207 // is only a hint. |
| 208 gfx::Size initial_expected_coded_size_; | 208 gfx::Size initial_expected_coded_size_; |
| 209 | 209 |
| 210 // Should we allow MediaCodec to autodetect the codec type (true), or | 210 // Should we allow MediaCodec to autodetect the codec type (true), or |
| 211 // select a software decoder manually (false). This is because fallback to | 211 // select a software decoder manually (false). This is because fallback to |
| 212 // software when autodetecting can sometimes hang mediaserver. | 212 // software when autodetecting can sometimes hang mediaserver. |
| 213 bool allow_autodetection_ = false; | 213 bool allow_autodetection_ = false; |
| 214 | 214 |
| 215 // Should we notify AVDAManager when codec configuration completes? | |
| 216 bool notify_completion_ = false; | |
| 217 | |
| 218 protected: | 215 protected: |
| 219 friend class base::RefCountedThreadSafe<CodecConfig>; | 216 friend class base::RefCountedThreadSafe<CodecConfig>; |
| 220 virtual ~CodecConfig(); | 217 virtual ~CodecConfig(); |
| 221 | 218 |
| 222 private: | 219 private: |
| 223 DISALLOW_COPY_AND_ASSIGN(CodecConfig); | 220 DISALLOW_COPY_AND_ASSIGN(CodecConfig); |
| 224 }; | 221 }; |
| 225 | 222 |
| 226 // Callback that is called when the SurfaceView becomes available, if it's | 223 // Callback that is called when the SurfaceView becomes available, if it's |
| 227 // not during Initialize. |success| is true if it is now available, false | 224 // not during Initialize. |success| is true if it is now available, false |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 478 |
| 482 // WeakPtrFactory for posting tasks back to |this|. | 479 // WeakPtrFactory for posting tasks back to |this|. |
| 483 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 480 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 484 | 481 |
| 485 friend class AndroidVideoDecodeAcceleratorTest; | 482 friend class AndroidVideoDecodeAcceleratorTest; |
| 486 }; | 483 }; |
| 487 | 484 |
| 488 } // namespace media | 485 } // namespace media |
| 489 | 486 |
| 490 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 487 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |