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

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

Issue 1135943005: Revert of content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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>
11 #include <queue> 11 #include <queue>
12 12
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
18 #include "base/threading/thread_checker.h" 18 #include "base/threading/thread_checker.h"
19 #include "content/common/gpu/media/vt.h" 19 #include "content/common/gpu/media/vt.h"
20 #include "media/filters/h264_parser.h" 20 #include "media/filters/h264_parser.h"
21 #include "media/video/h264_poc.h" 21 #include "media/video/h264_poc.h"
22 #include "media/video/video_decode_accelerator.h" 22 #include "media/video/video_decode_accelerator.h"
23 #include "ui/gfx/geometry/size.h" 23 #include "ui/gfx/geometry/size.h"
24 #include "ui/gl/gl_context_cgl.h" 24 #include "ui/gl/gl_context_cgl.h"
25 25
26 namespace base {
27 class SingleThreadTaskRunner;
28 } // namespace base
29
26 namespace content { 30 namespace content {
27 31
28 // Preload VideoToolbox libraries, needed for sandbox warmup. 32 // Preload VideoToolbox libraries, needed for sandbox warmup.
29 bool InitializeVideoToolbox(); 33 bool InitializeVideoToolbox();
30 34
31 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
32 // interface for Mac OS X (currently limited to 10.9+). 36 // interface for Mac OS X (currently limited to 10.9+).
33 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
34 public: 38 public:
35 explicit VTVideoDecodeAccelerator( 39 explicit VTVideoDecodeAccelerator(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Declared last to ensure that all weak pointers are invalidated before 242 // Declared last to ensure that all weak pointers are invalidated before
239 // other destructors run. 243 // other destructors run.
240 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 244 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
241 245
242 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 246 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
243 }; 247 };
244 248
245 } // namespace content 249 } // namespace content
246 250
247 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 251 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/video_encode_accelerator_unittest.cc ('k') | content/common/gpu/media/vt_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698