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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 7474006: PPB_VideoDecoder_Dev::Initialize is now synchronous! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR update. Created 9 years, 5 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index 6c06432fe542d4f3b5b44d517b495779ce1643b7..e1d426129a7007bd8c451a8dcfb772c429e5bca6 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -43,8 +43,10 @@ class GpuVideoDecodeAccelerator
// Function to delegate sending to actual sender.
virtual bool Send(IPC::Message* message);
- // Initialize the accelerator with the given configuration.
- void Initialize(const std::vector<uint32>& configs);
+ // Initialize the accelerator with the given configuration and send the
+ // |init_done_msg| when done.
+ void Initialize(const std::vector<uint32>& configs,
+ IPC::Message* init_done_msg);
private:
@@ -63,6 +65,11 @@ class GpuVideoDecodeAccelerator
// Pointer to the IPC message sender.
IPC::Message::Sender* sender_;
+ // Message to Send() when initialization is done. Is only non-NULL during
+ // initialization and is owned by the IPC channel underlying the
+ // GpuCommandBufferStub.
+ IPC::Message* init_done_msg_;
+
// Route ID to communicate with the host.
int32 host_route_id_;
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698