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

Unified Diff: content/browser/gpu_process_host.h

Issue 6623063: Connect up --disable-gl-multisampling to command buffer (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix style. Created 9 years, 9 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 | « chrome/gpu/gpu_command_buffer_stub.cc ('k') | content/browser/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu_process_host.h
diff --git a/content/browser/gpu_process_host.h b/content/browser/gpu_process_host.h
index 69f59163bc7c7577455d6eea3062e297d020cd8a..35c9163a05569147edd39fbe8cafc4c05c57991d 100644
--- a/content/browser/gpu_process_host.h
+++ b/content/browser/gpu_process_host.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/threading/non_thread_safe.h"
+#include "chrome/common/gpu_feature_flags.h"
#include "content/browser/browser_child_process_host.h"
namespace IPC {
@@ -19,7 +20,9 @@ class GpuProcessHost : public BrowserChildProcessHost,
// Create a GpuProcessHost with the given ID. The object can be found using
// FromID with the same id.
- static GpuProcessHost* Create(int host_id);
+ static GpuProcessHost* Create(
+ int host_id,
+ const GpuFeatureFlags& gpu_feature_flags);
// Get the GPU process host for the GPU process with the given ID. Returns
// null if the process no longer exists.
@@ -31,7 +34,9 @@ class GpuProcessHost : public BrowserChildProcessHost,
virtual bool OnMessageReceived(const IPC::Message& message);
private:
- explicit GpuProcessHost(int host_id);
+ explicit GpuProcessHost(
+ int host_id,
+ const GpuFeatureFlags& gpu_feature_flags);
virtual ~GpuProcessHost();
bool Init();
@@ -49,6 +54,8 @@ class GpuProcessHost : public BrowserChildProcessHost,
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
+ GpuFeatureFlags gpu_feature_flags_;
+
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
};
« no previous file with comments | « chrome/gpu/gpu_command_buffer_stub.cc ('k') | content/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698