Re-enable HW decode on CrOS now that the flashing bug is fixed.

BUG=129103

Review URL: https://chromiumcodereview.appspot.com/10559017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142817 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 62584c27..8a23dde 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -38,6 +38,7 @@
 class VideoCaptureImplManager;
 struct ViewMsg_New_Params;
 class WebDatabaseObserverImpl;
+class WebGraphicsContext3DCommandBufferImpl;
 
 namespace WebKit {
 class WebMediaStreamCenter;
@@ -216,6 +217,13 @@
   // not sent for at least one notification delay.
   void PostponeIdleNotification();
 
+  // 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
+  // loss.  The returned WeakPtr<> is only valid on the compositor thread when
+  // threaded compositing is enabled.
+  base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D();
+
  private:
   virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
 
@@ -294,6 +302,8 @@
 
   ObserverList<content::RenderProcessObserver> observers_;
 
+  scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
+
   DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
 };