| 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 CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "gpu/command_buffer/service/gpu_preferences.h" | 10 #include "gpu/command_buffer/service/gpu_preferences.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const MakeGLContextCurrentCallback& make_context_current_cb, | 62 const MakeGLContextCurrentCallback& make_context_current_cb, |
| 63 const BindGLImageCallback& bind_image_cb); | 63 const BindGLImageCallback& bind_image_cb); |
| 64 | 64 |
| 65 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> | 65 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> |
| 66 CreateWithGLES2Decoder( | 66 CreateWithGLES2Decoder( |
| 67 const GetGLContextCallback& get_gl_context_cb, | 67 const GetGLContextCallback& get_gl_context_cb, |
| 68 const MakeGLContextCurrentCallback& make_context_current_cb, | 68 const MakeGLContextCurrentCallback& make_context_current_cb, |
| 69 const BindGLImageCallback& bind_image_cb, | 69 const BindGLImageCallback& bind_image_cb, |
| 70 const GetGLES2DecoderCallback& get_gles2_decoder_cb); | 70 const GetGLES2DecoderCallback& get_gles2_decoder_cb); |
| 71 | 71 |
| 72 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> CreateWithNoGL(); |
| 73 |
| 72 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities( | 74 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities( |
| 73 const gpu::GpuPreferences& gpu_preferences); | 75 const gpu::GpuPreferences& gpu_preferences); |
| 74 | 76 |
| 75 scoped_ptr<media::VideoDecodeAccelerator> CreateVDA( | 77 scoped_ptr<media::VideoDecodeAccelerator> CreateVDA( |
| 76 media::VideoDecodeAccelerator::Client* client, | 78 media::VideoDecodeAccelerator::Client* client, |
| 77 const media::VideoDecodeAccelerator::Config& config, | 79 const media::VideoDecodeAccelerator::Config& config, |
| 78 const gpu::GpuPreferences& gpu_preferences); | 80 const gpu::GpuPreferences& gpu_preferences); |
| 79 | 81 |
| 80 private: | 82 private: |
| 81 GpuVideoDecodeAcceleratorFactoryImpl( | 83 GpuVideoDecodeAcceleratorFactoryImpl( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const GetGLES2DecoderCallback get_gles2_decoder_cb_; | 119 const GetGLES2DecoderCallback get_gles2_decoder_cb_; |
| 118 | 120 |
| 119 base::ThreadChecker thread_checker_; | 121 base::ThreadChecker thread_checker_; |
| 120 | 122 |
| 121 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); | 123 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace content | 126 } // namespace content |
| 125 | 127 |
| 126 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ | 128 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ |
| OLD | NEW |