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

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, 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.h
diff --git a/content/public/gpu/gpu_video_decode_accelerator_factory.h b/content/public/gpu/gpu_video_decode_accelerator_factory.h
index b02ceeabfed731bb67c4a10565c7a7eddcbca761..f64eb5e94cc5186f55d184f81a64a6f7ec90c32e 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 scoped_ptr<GpuVideoDecodeAcceleratorFactory> CreateWithNoGL();
+
// Return decoder capabilities supported on the current platform.
static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities(
const gpu::GpuPreferences& gpu_preferences);

Powered by Google App Engine
This is Rietveld 408576698