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

Unified Diff: content/browser/gpu/gpu_process_host.cc

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.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 96a233e56e426cb4c5eb1dbe9ade8d1d7af4acd7..e55fdd5f9ff1294818c648d965977bc27b2e1615 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -526,6 +526,12 @@ bool GpuProcessHost::Init() {
if (!Send(new GpuMsg_Initialize()))
return false;
+#if defined(USE_OZONE)
+ int32 host_route_id = GenerateRouteID();
alexst (slow to review) 2014/06/16 21:34:23 This is a public function that seems to only be us
rjkroege 2014/06/16 21:38:49 you are presuming that we never call this code mor
piman 2014/06/16 23:53:14 What is the purpose of the host route id? 1- Gener
spang 2014/06/17 14:47:34 Right. I thought of making it a constant, and we c
+ if (!Send(new GpuMsg_InitializePlatformSupport(host_route_id)))
piman 2014/06/16 23:53:14 Can you combine this with the GpuMsg_Initialize me
spang 2014/06/17 14:47:34 Will merge them.
+ return false;
+#endif
+
return true;
}
@@ -1089,6 +1095,10 @@ void GpuProcessHost::LoadedShader(const std::string& key,
Send(new GpuMsg_LoadedShader(data));
}
+int32 GpuProcessHost::GenerateRouteID() {
+ return next_route_id_.GetNext();
+}
+
void GpuProcessHost::CreateChannelCache(int32 client_id) {
TRACE_EVENT0("gpu", "GpuProcessHost::CreateChannelCache");

Powered by Google App Engine
This is Rietveld 408576698