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

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

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 5 #ifndef MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 6 #define MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/threading/thread_checker.h" 11 #include "base/threading/thread_checker.h"
12 #include "content/common/content_export.h"
13 #include "gpu/command_buffer/service/gpu_preferences.h" 12 #include "gpu/command_buffer/service/gpu_preferences.h"
14 #include "gpu/config/gpu_info.h" 13 #include "gpu/config/gpu_info.h"
14 #include "media/gpu/media_gpu_export.h"
15 #include "media/video/video_decode_accelerator.h" 15 #include "media/video/video_decode_accelerator.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 class GLContext; 18 class GLContext;
19 } 19 }
20 20
21 namespace gl { 21 namespace gl {
22 class GLImage; 22 class GLImage;
23 } 23 }
24 24
25 namespace gpu { 25 namespace gpu {
26 struct GpuPreferences; 26 struct GpuPreferences;
27 27
28 namespace gles2 { 28 namespace gles2 {
29 class GLES2Decoder; 29 class GLES2Decoder;
30 } 30 }
31 } 31 }
32 32
33 namespace content { 33 namespace media {
34 34
35 // TODO(posciak): this class should be an implementation of 35 // TODO(posciak): this class should be an implementation of
36 // content::GpuVideoDecodeAcceleratorFactory, however that can only be achieved 36 // content::GpuVideoDecodeAcceleratorFactory, however that can only be achieved
37 // once this is moved out of content/common, see crbug.com/597150 and related. 37 // once this is moved out of content/common, see crbug.com/597150 and related.
38 class CONTENT_EXPORT GpuVideoDecodeAcceleratorFactoryImpl { 38 class MEDIA_GPU_EXPORT GpuVideoDecodeAcceleratorFactoryImpl {
39 public: 39 public:
40 ~GpuVideoDecodeAcceleratorFactoryImpl(); 40 ~GpuVideoDecodeAcceleratorFactoryImpl();
41 41
42 // Return current GLContext. 42 // Return current GLContext.
43 using GetGLContextCallback = base::Callback<gfx::GLContext*(void)>; 43 using GetGLContextCallback = base::Callback<gfx::GLContext*(void)>;
44 44
45 // Make the applicable GL context current. To be called by VDAs before 45 // Make the applicable GL context current. To be called by VDAs before
46 // executing any GL calls. Return true on success, false otherwise. 46 // executing any GL calls. Return true on success, false otherwise.
47 using MakeGLContextCurrentCallback = base::Callback<bool(void)>; 47 using MakeGLContextCurrentCallback = base::Callback<bool(void)>;
48 48
49 // Bind |image| to |client_texture_id| given |texture_target|. If 49 // Bind |image| to |client_texture_id| given |texture_target|. If
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const GetGLContextCallback get_gl_context_cb_; 115 const GetGLContextCallback get_gl_context_cb_;
116 const MakeGLContextCurrentCallback make_context_current_cb_; 116 const MakeGLContextCurrentCallback make_context_current_cb_;
117 const BindGLImageCallback bind_image_cb_; 117 const BindGLImageCallback bind_image_cb_;
118 const GetGLES2DecoderCallback get_gles2_decoder_cb_; 118 const GetGLES2DecoderCallback get_gles2_decoder_cb_;
119 119
120 base::ThreadChecker thread_checker_; 120 base::ThreadChecker thread_checker_;
121 121
122 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); 122 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace media
126 126
127 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 127 #endif // MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « media/gpu/gpu_video_accelerator_util.cc ('k') | media/gpu/gpu_video_decode_accelerator_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698