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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.h

Issue 338193003: ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/browser/gpu/gpu_process_host_ui_shim.h
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h
index 2fe19789bfe5adf0840c4d53a58983a0d7d025fd..6cf3181e3aee99dac2a7bd4f327b65cd469f6d29 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.h
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h
@@ -78,6 +78,10 @@ class GpuProcessHostUIShim : public IPC::Listener,
CONTENT_EXPORT void SimulateCrash();
CONTENT_EXPORT void SimulateHang();
+ // Called to add a listener for a particular message routing ID.
rjkroege 2014/06/16 21:38:49 This comment probably should say why this is here.
+ // Returns true if succeeded.
+ void AddRoute(int32 routing_id, IPC::Listener* listener);
+
private:
explicit GpuProcessHostUIShim(int host_id);
virtual ~GpuProcessHostUIShim();
@@ -104,9 +108,13 @@ class GpuProcessHostUIShim : public IPC::Listener,
base::TimeTicks timebase,
base::TimeDelta interval);
void OnFrameDrawn(const std::vector<ui::LatencyInfo>& latency_info);
+ void OnPlatformSupportInitialized(int32 host_route_id, int32 gpu_route_id);
rjkroege 2014/06/16 21:38:49 More comments about this message?
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
+
+ // Listeners for routed messages.
+ IDMap<IPC::Listener> routes_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698