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

Unified Diff: content/gpu/gpu_child_thread.h

Issue 1297953004: Support mojo applications in GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and fix in-process-gpu case Created 5 years, 2 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 | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index 11cd46d6c0bd5972df1ed16575eedff7b4dca4bf..35b32f9d5043652042fa282b8fa0b2a9b3b4f70a 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -19,7 +19,9 @@
#include "content/common/gpu/gpu_channel_manager.h"
#include "content/common/gpu/gpu_config.h"
#include "content/common/gpu/x_util.h"
+#include "content/gpu/gpu_process_control_impl.h"
Ken Rockot(use gerrit already) 2015/10/02 21:34:51 nit: could just forward declare this?
xhwang 2015/10/02 22:07:48 Done.
#include "gpu/config/gpu_info.h"
+#include "mojo/common/weak_binding_set.h"
#include "ui/gfx/native_widget_types.h"
namespace gpu {
@@ -85,6 +87,9 @@ class GpuChildThread : public ChildThreadImpl {
void OnGetGpuTcmalloc();
#endif
+ void BindProcessControlRequest(
+ mojo::InterfaceRequest<ProcessControl> request);
+
// Set this flag to true if a fatal error occurred before we receive the
// OnInitialize message, in which case we just declare ourselves DOA.
bool dead_on_arrival_;
@@ -113,6 +118,12 @@ class GpuChildThread : public ChildThreadImpl {
// The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
+ // Process control for Mojo application hosting.
+ scoped_ptr<GpuProcessControlImpl> process_control_;
+
+ // Bindings to the ProcessControl impl.
+ mojo::WeakBindingSet<ProcessControl> process_control_bindings_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
};
« no previous file with comments | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698