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

Unified Diff: chrome/renderer/gpu_video_decoder_host.h

Issue 3215008: Connect GpuVideoDecodeServiceHost with ggl::Context and CommandBufferProxy (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fixed comments Created 10 years, 4 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: chrome/renderer/gpu_video_decoder_host.h
diff --git a/chrome/renderer/gpu_video_decoder_host.h b/chrome/renderer/gpu_video_decoder_host.h
index dccafff0ac030dc60886f09c0b19f061e344769c..42f1b7a8621d463b09f1765cde0f21c97c1e1ddd 100644
--- a/chrome/renderer/gpu_video_decoder_host.h
+++ b/chrome/renderer/gpu_video_decoder_host.h
@@ -47,7 +47,7 @@ class GpuVideoDecoderHost
virtual void OnChannelError();
virtual void OnMessageReceived(const IPC::Message& message);
- bool Initialize(const GpuVideoDecoderInitParam& param);
+ bool Initialize(EventHandler* handler, const GpuVideoDecoderInitParam& param);
bool Uninitialize();
void EmptyThisBuffer(scoped_refptr<Buffer> buffer);
void FillThisBuffer(scoped_refptr<VideoFrame> frame);
@@ -60,12 +60,10 @@ class GpuVideoDecoderHost
virtual ~GpuVideoDecoderHost() {}
private:
+ friend class GpuVideoServiceHost;
GpuVideoDecoderHost(GpuVideoServiceHost* service_host,
GpuChannelHost* channel_host,
- EventHandler* event_handler,
- GpuVideoDecoderInfoParam decoder_info);
-
- friend class GpuVideoServiceHost;
+ int context_route_id);
// Input message handler.
void OnInitializeDone(const GpuVideoDecoderInitDoneParam& param);
@@ -83,6 +81,9 @@ class GpuVideoDecoderHost
scoped_refptr<GpuChannelHost> channel_host_;
+ // Route ID of the GLES2 context in the GPU process.
+ int context_route_id_;
+
// We expect that the client of us will always available during our life span.
EventHandler* event_handler_;
@@ -117,4 +118,3 @@ class GpuVideoDecoderHost
};
#endif // CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_
-

Powered by Google App Engine
This is Rietveld 408576698