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

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

Issue 1134113002: content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build. 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
30 namespace content { 26 namespace content {
31 27
32 // Preload VideoToolbox libraries, needed for sandbox warmup. 28 // Preload VideoToolbox libraries, needed for sandbox warmup.
33 bool InitializeVideoToolbox(); 29 bool InitializeVideoToolbox();
34 30
35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 31 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
36 // interface for Mac OS X (currently limited to 10.9+). 32 // interface for Mac OS X (currently limited to 10.9+).
37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 33 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
38 public: 34 public:
39 explicit VTVideoDecodeAccelerator( 35 explicit VTVideoDecodeAccelerator(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Declared last to ensure that all weak pointers are invalidated before 238 // Declared last to ensure that all weak pointers are invalidated before
243 // other destructors run. 239 // other destructors run.
244 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 240 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
245 241
246 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 242 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
247 }; 243 };
248 244
249 } // namespace content 245 } // namespace content
250 246
251 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 247 #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