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

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

Issue 723993003: Sandbox initialization for VideoToolbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_queue_frames
Patch Set: Reduce code duplication. Created 6 years, 1 month 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>
(...skipping 10 matching lines...) Expand all
21 #include "media/video/video_decode_accelerator.h" 21 #include "media/video/video_decode_accelerator.h"
22 #include "ui/gfx/geometry/size.h" 22 #include "ui/gfx/geometry/size.h"
23 #include "ui/gl/gl_context_cgl.h" 23 #include "ui/gl/gl_context_cgl.h"
24 24
25 namespace base { 25 namespace base {
26 class SingleThreadTaskRunner; 26 class SingleThreadTaskRunner;
27 } // namespace base 27 } // namespace base
28 28
29 namespace content { 29 namespace content {
30 30
31 void InitializeVideoToolbox();
32
31 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 33 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
32 // interface for Mac OS X (currently limited to 10.9+). 34 // interface for Mac OS X (currently limited to 10.9+).
33 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 35 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
34 public: 36 public:
35 explicit VTVideoDecodeAccelerator( 37 explicit VTVideoDecodeAccelerator(
36 CGLContextObj cgl_context, 38 CGLContextObj cgl_context,
37 const base::Callback<bool(void)>& make_context_current); 39 const base::Callback<bool(void)>& make_context_current);
38 ~VTVideoDecodeAccelerator() override; 40 ~VTVideoDecodeAccelerator() override;
39 41
40 // VideoDecodeAccelerator implementation. 42 // VideoDecodeAccelerator implementation.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Declared last to ensure that all decoder thread tasks complete before any 188 // Declared last to ensure that all decoder thread tasks complete before any
187 // state is destructed. 189 // state is destructed.
188 base::Thread decoder_thread_; 190 base::Thread decoder_thread_;
189 191
190 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 192 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
191 }; 193 };
192 194
193 } // namespace content 195 } // namespace content
194 196
195 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 197 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698