| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VT_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 base::ScopedCFTypeRef<CMFormatDescriptionRef> format_; | 242 base::ScopedCFTypeRef<CMFormatDescriptionRef> format_; |
| 243 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_; | 243 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_; |
| 244 media::H264Parser parser_; | 244 media::H264Parser parser_; |
| 245 gfx::Size coded_size_; | 245 gfx::Size coded_size_; |
| 246 | 246 |
| 247 int last_sps_id_; | 247 int last_sps_id_; |
| 248 std::vector<uint8_t> last_sps_; | 248 std::vector<uint8_t> last_sps_; |
| 249 std::vector<uint8_t> last_spsext_; | 249 std::vector<uint8_t> last_spsext_; |
| 250 int last_pps_id_; | 250 int last_pps_id_; |
| 251 std::vector<uint8_t> last_pps_; | 251 std::vector<uint8_t> last_pps_; |
| 252 bool config_changed_; |
| 252 media::H264POC poc_; | 253 media::H264POC poc_; |
| 253 | 254 |
| 254 // | 255 // |
| 255 // Shared state (set up and torn down on GPU thread). | 256 // Shared state (set up and torn down on GPU thread). |
| 256 // | 257 // |
| 257 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; | 258 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; |
| 258 base::ThreadChecker gpu_thread_checker_; | 259 base::ThreadChecker gpu_thread_checker_; |
| 259 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_; | 260 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_; |
| 260 base::Thread decoder_thread_; | 261 base::Thread decoder_thread_; |
| 261 | 262 |
| 262 // Declared last to ensure that all weak pointers are invalidated before | 263 // Declared last to ensure that all weak pointers are invalidated before |
| 263 // other destructors run. | 264 // other destructors run. |
| 264 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | 265 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | 267 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace content | 270 } // namespace content |
| 270 | 271 |
| 271 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 272 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |