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

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: rebase 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 5a5d501f87016a38255646a296918e454164c137..ed4a5a6719508c69b18219507ae87b06453682a1 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698