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

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

Issue 780713004: Load VideoToolbox even when --no-sandbox is in use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 12 matching lines...) Expand all
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. 32 // Preload VideoToolbox libraries, needed for sandbox warmup.
33 void InitializeVideoToolbox(); 33 bool InitializeVideoToolbox();
34 34
35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
36 // interface for Mac OS X (currently limited to 10.9+). 36 // interface for Mac OS X (currently limited to 10.9+).
37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
38 public: 38 public:
39 explicit VTVideoDecodeAccelerator( 39 explicit VTVideoDecodeAccelerator(
40 CGLContextObj cgl_context, 40 CGLContextObj cgl_context,
41 const base::Callback<bool(void)>& make_context_current); 41 const base::Callback<bool(void)>& make_context_current);
42 ~VTVideoDecodeAccelerator() override; 42 ~VTVideoDecodeAccelerator() override;
43 43
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Declared last to ensure that all weak pointers are invalidated before 224 // Declared last to ensure that all weak pointers are invalidated before
225 // other destructors run. 225 // other destructors run.
226 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 226 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
227 227
228 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 228 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
229 }; 229 };
230 230
231 } // namespace content 231 } // namespace content
232 232
233 #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