Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.h

Issue 1882533002: Don't force a full decoder reset on seek in VTVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/vt_video_decode_accelerator_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_; 248 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_;
249 media::H264Parser parser_; 249 media::H264Parser parser_;
250 gfx::Size coded_size_; 250 gfx::Size coded_size_;
251 251
252 int last_sps_id_; 252 int last_sps_id_;
253 std::vector<uint8_t> last_sps_; 253 std::vector<uint8_t> last_sps_;
254 std::vector<uint8_t> last_spsext_; 254 std::vector<uint8_t> last_spsext_;
255 int last_pps_id_; 255 int last_pps_id_;
256 std::vector<uint8_t> last_pps_; 256 std::vector<uint8_t> last_pps_;
257 bool config_changed_; 257 bool config_changed_;
258 bool waiting_for_idr_;
258 bool missing_idr_logged_; 259 bool missing_idr_logged_;
259 media::H264POC poc_; 260 media::H264POC poc_;
260 261
261 // 262 //
262 // Shared state (set up and torn down on GPU thread). 263 // Shared state (set up and torn down on GPU thread).
263 // 264 //
264 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; 265 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_;
265 base::ThreadChecker gpu_thread_checker_; 266 base::ThreadChecker gpu_thread_checker_;
266 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_; 267 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_;
267 base::Thread decoder_thread_; 268 base::Thread decoder_thread_;
268 269
269 // Declared last to ensure that all weak pointers are invalidated before 270 // Declared last to ensure that all weak pointers are invalidated before
270 // other destructors run. 271 // other destructors run.
271 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 272 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
272 273
273 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 274 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
274 }; 275 };
275 276
276 } // namespace content 277 } // namespace content
277 278
278 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 279 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/vt_video_decode_accelerator_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698