OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 // static |
| 10 scoped_ptr<GpuVideoDecodeAcceleratorFactory> |
| 11 GpuVideoDecodeAcceleratorFactory::Create( |
| 12 const GetGLContextCallback& get_gl_context_cb, |
| 13 const MakeGLContextCurrentCallback& make_context_current_cb, |
| 14 const BindGLImageCallback& bind_image_cb) { |
| 15 return GpuVideoDecodeAcceleratorFactoryImpl::Create( |
| 16 get_gl_context_cb, make_context_current_cb, bind_image_cb); |
| 17 } |
| 18 |
| 19 // static |
| 20 scoped_ptr<GpuVideoDecodeAcceleratorFactory> |
| 21 GpuVideoDecodeAcceleratorFactory::CreateWithGLES2Decoder( |
| 22 const GetGLContextCallback& get_gl_context_cb, |
| 23 const MakeGLContextCurrentCallback& make_context_current_cb, |
| 24 const BindGLImageCallback& bind_image_cb, |
| 25 const GetGLES2DecoderCallback& get_gles2_decoder_cb) { |
| 26 return GpuVideoDecodeAcceleratorFactoryImpl::CreateWithGLES2Decoder( |
| 27 get_gl_context_cb, make_context_current_cb, bind_image_cb, |
| 28 get_gles2_decoder_cb); |
| 29 } |
| 30 |
| 31 // static |
| 32 gpu::VideoDecodeAcceleratorCapabilities |
| 33 GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities( |
| 34 const gpu::GpuPreferences& gpu_preferences) { |
| 35 return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities( |
| 36 gpu_preferences); |
| 37 } |
| 38 |
| 39 } // namespace content |
OLD | NEW |