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

Unified Diff: content/renderer/render_thread_impl.h

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 7 years, 6 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/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 63cc80cbff7eb3d196eb57ae53c38c45f540d4e1..d04dbe7eb33975d58364f5f4fa9c3489c69c794d 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -20,6 +20,7 @@
#include "content/common/gpu/gpu_process_launch_causes.h"
#include "content/public/renderer/render_thread.h"
#include "ipc/ipc_channel_proxy.h"
+#include "media/filters/gpu_video_decoder.h"
#include "ui/gfx/native_widget_types.h"
class GrContext;
@@ -268,6 +269,10 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// not sent for at least one notification delay.
void PostponeIdleNotification();
+ // Gets gpu factories. Returns NULL if VDA is disabled or a graphics context
+ // cannot be obtained.
+ scoped_refptr<media::GpuVideoDecoder::Factories> GetGpuFactories();
+
// Returns a graphics context shared among all
// RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned
// by this class and must be null-tested before each use to detect context

Powered by Google App Engine
This is Rietveld 408576698