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

Unified Diff: chrome/browser/gpu_process_host_ui_shim.h

Issue 6557006: Moved creation of GPU transfer buffers into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: chrome/browser/gpu_process_host_ui_shim.h
===================================================================
--- chrome/browser/gpu_process_host_ui_shim.h (revision 75655)
+++ chrome/browser/gpu_process_host_ui_shim.h (working copy)
@@ -16,6 +16,7 @@
#include "base/callback.h"
#include "base/linked_ptr.h"
+#include "base/process.h"
#include "base/scoped_ptr.h"
#include "base/singleton.h"
#include "base/values.h"
@@ -58,6 +59,12 @@
// UI shim.
static void Destroy(int host_id);
+ // The GPU process is launched asynchronously. If it launches successfully,
+ // this function is called on the UI thread with the process handle. On
+ // Windows, the UI shim takes ownership of the handle.
+ static void NotifyGpuProcessLaunched(int host_id,
+ base::ProcessHandle gpu_process);
+
static GpuProcessHostUIShim* FromID(int host_id);
int host_id() const { return host_id_; }
@@ -75,7 +82,9 @@
// actually received on the IO thread.
virtual bool OnMessageReceived(const IPC::Message& message);
- typedef Callback2<const IPC::ChannelHandle&, const GPUInfo&>::Type
+ typedef Callback3<const IPC::ChannelHandle&,
+ base::ProcessHandle,
+ const GPUInfo&>::Type
EstablishChannelCallback;
// Tells the GPU process to create a new channel for communication with a
@@ -167,6 +176,9 @@
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
+ // The handle for the GPU process or null if it is not known to be launched.
+ base::ProcessHandle gpu_process_;
+
GPUInfo gpu_info_;
ListValue log_messages_;

Powered by Google App Engine
This is Rietveld 408576698