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 #include "content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h" | 5 #include "content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h" |
6 #include "content/public/gpu/gpu_video_decode_accelerator_factory.h" | 6 #include "content/public/gpu/gpu_video_decode_accelerator_factory.h" |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 GpuVideoDecodeAcceleratorFactory::~GpuVideoDecodeAcceleratorFactory() {} | 10 GpuVideoDecodeAcceleratorFactory::~GpuVideoDecodeAcceleratorFactory() {} |
(...skipping 26 matching lines...) Expand all Loading... |
37 get_gles2_decoder_cb); | 37 get_gles2_decoder_cb); |
38 if (!gvdafactory_impl) | 38 if (!gvdafactory_impl) |
39 return nullptr; | 39 return nullptr; |
40 | 40 |
41 return make_scoped_ptr( | 41 return make_scoped_ptr( |
42 new GpuVideoDecodeAcceleratorFactory(std::move(gvdafactory_impl))); | 42 new GpuVideoDecodeAcceleratorFactory(std::move(gvdafactory_impl))); |
43 } | 43 } |
44 | 44 |
45 // static | 45 // static |
46 gpu::VideoDecodeAcceleratorCapabilities | 46 gpu::VideoDecodeAcceleratorCapabilities |
47 GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities( | 47 GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities() { |
48 const gpu::GpuPreferences& gpu_preferences) { | 48 return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities(); |
49 return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities( | |
50 gpu_preferences); | |
51 } | 49 } |
52 | 50 |
53 scoped_ptr<media::VideoDecodeAccelerator> | 51 scoped_ptr<media::VideoDecodeAccelerator> |
54 GpuVideoDecodeAcceleratorFactory::CreateVDA( | 52 GpuVideoDecodeAcceleratorFactory::CreateVDA( |
55 media::VideoDecodeAccelerator::Client* client, | 53 media::VideoDecodeAccelerator::Client* client, |
56 const media::VideoDecodeAccelerator::Config& config, | 54 const media::VideoDecodeAccelerator::Config& config) { |
57 const gpu::GpuPreferences& gpu_preferences) { | |
58 if (!gvdafactory_impl_) | 55 if (!gvdafactory_impl_) |
59 return nullptr; | 56 return nullptr; |
60 | 57 |
61 return gvdafactory_impl_->CreateVDA(client, config, gpu_preferences); | 58 return gvdafactory_impl_->CreateVDA(client, config); |
62 } | 59 } |
63 | 60 |
64 GpuVideoDecodeAcceleratorFactory::GpuVideoDecodeAcceleratorFactory( | 61 GpuVideoDecodeAcceleratorFactory::GpuVideoDecodeAcceleratorFactory( |
65 scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> gvdafactory_impl) | 62 scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> gvdafactory_impl) |
66 : gvdafactory_impl_(std::move(gvdafactory_impl)) {} | 63 : gvdafactory_impl_(std::move(gvdafactory_impl)) {} |
67 | 64 |
68 } // namespace content | 65 } // namespace content |
OLD | NEW |