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

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, 9 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 57b46a86f10ae50e182fcc7dd1e7744deabe40dd..828eccf4926eec0a5d18ea7182a8ac645b10a06a 100644
--- a/content/public/gpu/gpu_video_decode_accelerator_factory.cc
+++ b/content/public/gpu/gpu_video_decode_accelerator_factory.cc
@@ -43,6 +43,18 @@ GpuVideoDecodeAcceleratorFactory::CreateWithGLES2Decoder(
}
// static
+scoped_ptr<GpuVideoDecodeAcceleratorFactory>
+GpuVideoDecodeAcceleratorFactory::CreateWithNoGL() {
+ auto gvdafactory_impl =
+ GpuVideoDecodeAcceleratorFactoryImpl::CreateWithNoGL();
+ if (!gvdafactory_impl)
+ return nullptr;
+
+ return make_scoped_ptr(
+ new GpuVideoDecodeAcceleratorFactory(std::move(gvdafactory_impl)));
+}
+
+// static
gpu::VideoDecodeAcceleratorCapabilities
GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities(
const gpu::GpuPreferences& gpu_preferences) {

Powered by Google App Engine
This is Rietveld 408576698