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

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

Issue 9667012: Fix --single-process mode issues with GpuChannelHostFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index f9a7bd6a2eeed63a971b9d2f0d9a085d9f230ecf..cfb4e6a7329555f2eae8932cc7122292017ad53e 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -19,7 +19,7 @@ class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
public:
static void Initialize();
static void Terminate();
- static BrowserGpuChannelHostFactory* Get();
+ static BrowserGpuChannelHostFactory* instance() { return instance_; }
// GpuChannelHostFactory implementation.
virtual bool IsMainThread() OVERRIDE;
@@ -35,8 +35,6 @@ class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
virtual GpuChannelHost* EstablishGpuChannelSync(
CauseForGpuLaunch cause_for_gpu_launch) OVERRIDE;
- int gpu_client_id() { return gpu_client_id_; }
-
private:
struct CreateRequest {
CreateRequest();
@@ -75,6 +73,8 @@ class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
scoped_refptr<GpuChannelHost> gpu_channel_;
int gpu_host_id_;
+ static BrowserGpuChannelHostFactory* instance_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
};
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698