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

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

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.h
diff --git a/content/public/gpu/gpu_video_decode_accelerator_factory.h b/content/public/gpu/gpu_video_decode_accelerator_factory.h
index 313306bdd36af0d05b4f74cf2af26e47130afa07..6dff49f66e0b4a50401aef4b1ad534be62cebead 100644
--- a/content/public/gpu/gpu_video_decode_accelerator_factory.h
+++ b/content/public/gpu/gpu_video_decode_accelerator_factory.h
@@ -70,6 +70,13 @@ class CONTENT_EXPORT GpuVideoDecodeAcceleratorFactory {
const BindGLImageCallback& bind_image_cb,
const GetGLES2DecoderCallback& get_gles2_decoder_cb);
+ // Create a factory capable of producing VDA instances for current platform
+ // with no GL support.
+ // A factory created with this method will only be able to produce VDAs with
+ // no ability to call GL functions/access GL state. This also implies no
+ // ability to decode into textures provided by the client.
+ static std::unique_ptr<GpuVideoDecodeAcceleratorFactory> CreateWithNoGL();
+
// Return decoder capabilities supported on the current platform.
static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities();

Powered by Google App Engine
This is Rietveld 408576698