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

Side by Side Diff: media/gpu/vt_video_decode_accelerator_mac.h

Issue 1937093002: Fix Windows component builds: Use component type in gyp build for media_gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export InitializeVideoToolbox Created 4 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
« no previous file with comments | « content/content_common.gypi ('k') | media/media.gyp » ('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>
11 #include <memory> 11 #include <memory>
12 #include <queue> 12 #include <queue>
13 13
14 #include "base/mac/scoped_cftyperef.h" 14 #include "base/mac/scoped_cftyperef.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/linked_ptr.h" 16 #include "base/memory/linked_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/threading/thread_checker.h" 20 #include "base/threading/thread_checker.h"
21 #include "media/filters/h264_parser.h" 21 #include "media/filters/h264_parser.h"
22 #include "media/gpu/gpu_video_decode_accelerator_helpers.h" 22 #include "media/gpu/gpu_video_decode_accelerator_helpers.h"
23 #include "media/gpu/media_gpu_export.h"
23 #include "media/gpu/vt_mac.h" 24 #include "media/gpu/vt_mac.h"
24 #include "media/video/h264_poc.h" 25 #include "media/video/h264_poc.h"
25 #include "media/video/video_decode_accelerator.h" 26 #include "media/video/video_decode_accelerator.h"
26 #include "ui/gfx/geometry/size.h" 27 #include "ui/gfx/geometry/size.h"
27 #include "ui/gl/gl_context_cgl.h" 28 #include "ui/gl/gl_context_cgl.h"
28 #include "ui/gl/gl_image_io_surface.h" 29 #include "ui/gl/gl_image_io_surface.h"
29 30
30 namespace media { 31 namespace media {
31 32
32 // Preload VideoToolbox libraries, needed for sandbox warmup. 33 // Preload VideoToolbox libraries, needed for sandbox warmup.
33 bool InitializeVideoToolbox(); 34 MEDIA_GPU_EXPORT bool InitializeVideoToolbox();
34 35
35 // VideoToolbox.framework implementation of the VideoDecodeAccelerator 36 // VideoToolbox.framework implementation of the VideoDecodeAccelerator
36 // interface for Mac OS X (currently limited to 10.9+). 37 // interface for Mac OS X (currently limited to 10.9+).
37 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 38 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
38 public: 39 public:
39 explicit VTVideoDecodeAccelerator( 40 explicit VTVideoDecodeAccelerator(
40 const MakeGLContextCurrentCallback& make_context_current_cb, 41 const MakeGLContextCurrentCallback& make_context_current_cb,
41 const BindGLImageCallback& bind_image_cb); 42 const BindGLImageCallback& bind_image_cb);
42 43
43 ~VTVideoDecodeAccelerator() override; 44 ~VTVideoDecodeAccelerator() override;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Declared last to ensure that all weak pointers are invalidated before 269 // Declared last to ensure that all weak pointers are invalidated before
269 // other destructors run. 270 // other destructors run.
270 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 271 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 273 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
273 }; 274 };
274 275
275 } // namespace media 276 } // namespace media
276 277
277 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 278 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698