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

Unified Diff: content/common/gpu/gpu_channel.h

Issue 7659001: Support multiple HW video decoders per context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 1efebcae1eeae554fb1c2f3660339939f30a9b7e..59e1d867998d1a970f3cab74def0f4ec38a59c5a 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -122,6 +122,13 @@ class GpuChannel : public IPC::Channel::Listener,
// TransportTexture to delete and detach itself.
void DestroyTransportTexture(int32 route_id);
+ // Generate a route ID guaranteed to be unique for this channel.
+ int GenerateRouteID();
+
+ // Called to add/remove a listener for a particular message routing ID.
+ void AddRoute(int32 route_id, IPC::Channel::Listener* listener);
+ void RemoveRoute(int32 route_id);
+
private:
void OnDestroy();
@@ -129,8 +136,6 @@ class GpuChannel : public IPC::Channel::Listener,
void HandleDeferredMessages();
- int GenerateRouteID();
-
// Message handlers.
void OnInitialize(base::ProcessHandle renderer_process);
void OnCreateOffscreenCommandBuffer(
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/renderer/gpu/gpu_video_decode_accelerator_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698