| OLD | NEW |
| 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 MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 5 #ifndef MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
| 6 #define MEDIA_GPU_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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace gpu { | 23 namespace gpu { |
| 24 struct GpuPreferences; | 24 struct GpuPreferences; |
| 25 | 25 |
| 26 namespace gles2 { | 26 namespace gles2 { |
| 27 class GLES2Decoder; | 27 class GLES2Decoder; |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace media { | 31 namespace media { |
| 32 | 32 |
| 33 // TODO(posciak): this class should be an implementation of | |
| 34 // content::GpuVideoDecodeAcceleratorFactory, however that can only be achieved | |
| 35 // once this is moved out of content/common, see crbug.com/597150 and related. | |
| 36 class MEDIA_GPU_EXPORT GpuVideoDecodeAcceleratorFactoryImpl { | 33 class MEDIA_GPU_EXPORT GpuVideoDecodeAcceleratorFactoryImpl { |
| 37 public: | 34 public: |
| 38 ~GpuVideoDecodeAcceleratorFactoryImpl(); | 35 ~GpuVideoDecodeAcceleratorFactoryImpl(); |
| 39 | 36 |
| 40 // Return current GLContext. | 37 // Return current GLContext. |
| 41 using GetGLContextCallback = base::Callback<gl::GLContext*(void)>; | 38 using GetGLContextCallback = base::Callback<gl::GLContext*(void)>; |
| 42 | 39 |
| 43 // Make the applicable GL context current. To be called by VDAs before | 40 // Make the applicable GL context current. To be called by VDAs before |
| 44 // executing any GL calls. Return true on success, false otherwise. | 41 // executing any GL calls. Return true on success, false otherwise. |
| 45 using MakeGLContextCurrentCallback = base::Callback<bool(void)>; | 42 using MakeGLContextCurrentCallback = base::Callback<bool(void)>; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const GetGLES2DecoderCallback get_gles2_decoder_cb_; | 120 const GetGLES2DecoderCallback get_gles2_decoder_cb_; |
| 124 | 121 |
| 125 base::ThreadChecker thread_checker_; | 122 base::ThreadChecker thread_checker_; |
| 126 | 123 |
| 127 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); | 124 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); |
| 128 }; | 125 }; |
| 129 | 126 |
| 130 } // namespace media | 127 } // namespace media |
| 131 | 128 |
| 132 #endif // MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 129 #endif // MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
| OLD | NEW |