Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10983)

Unified Diff: content/public/gpu/gpu_video_decode_accelerator_factory.cc

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 =
« no previous file with comments | « content/public/gpu/gpu_video_decode_accelerator_factory.h ('k') | content/renderer/media/rtc_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698