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

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: Rebase. Created 6 years 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.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 11 matching lines...) Expand all
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 { 26 namespace base {
27 class SingleThreadTaskRunner; 27 class SingleThreadTaskRunner;
28 } // namespace base 28 } // namespace base
29 29
30 namespace content { 30 namespace content {
31 31
32 // Preload VideoToolbox libraries, needed for sandbox warmup.
33 void InitializeVideoToolbox();
34
32 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
33 // interface for Mac OS X (currently limited to 10.9+). 36 // interface for Mac OS X (currently limited to 10.9+).
34 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
35 public: 38 public:
36 explicit VTVideoDecodeAccelerator( 39 explicit VTVideoDecodeAccelerator(
37 CGLContextObj cgl_context, 40 CGLContextObj cgl_context,
38 const base::Callback<bool(void)>& make_context_current); 41 const base::Callback<bool(void)>& make_context_current);
39 ~VTVideoDecodeAccelerator() override; 42 ~VTVideoDecodeAccelerator() override;
40 43
41 // VideoDecodeAccelerator implementation. 44 // VideoDecodeAccelerator implementation.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // Declared last to ensure that all weak pointers are invalidated before 224 // Declared last to ensure that all weak pointers are invalidated before
222 // other destructors run. 225 // other destructors run.
223 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 226 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
224 227
225 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 228 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
226 }; 229 };
227 230
228 } // namespace content 231 } // namespace content
229 232
230 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 233 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698