Index: content/public/gpu/gpu_video_decode_accelerator_factory.cc |
diff --git a/content/public/gpu/gpu_video_decode_accelerator_factory.cc b/content/public/gpu/gpu_video_decode_accelerator_factory.cc |
index 26cf35746ca22bb9b4001c22819d10d17d4909ab..ed8172f4ff0e18736389255e26d6c68b6d0513bb 100644 |
--- a/content/public/gpu/gpu_video_decode_accelerator_factory.cc |
+++ b/content/public/gpu/gpu_video_decode_accelerator_factory.cc |
@@ -46,6 +46,18 @@ GpuVideoDecodeAcceleratorFactory::CreateWithGLES2Decoder( |
} |
// static |
+std::unique_ptr<GpuVideoDecodeAcceleratorFactory> |
+GpuVideoDecodeAcceleratorFactory::CreateWithNoGL() { |
+ auto gvdafactory_impl = |
+ GpuVideoDecodeAcceleratorFactoryImpl::CreateWithNoGL(); |
+ if (!gvdafactory_impl) |
+ return nullptr; |
+ |
+ return base::WrapUnique( |
+ new GpuVideoDecodeAcceleratorFactory(std::move(gvdafactory_impl))); |
+} |
+ |
+// static |
gpu::VideoDecodeAcceleratorCapabilities |
GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities() { |
const gpu::GpuPreferences gpu_preferences = |