diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-11 04:17:48 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-11 04:17:48 +0000 |
commit | 6395479cb45348d2049bcb1a5a49988ec00eb465 (patch) | |
tree | ea7509e451583b709a8634067848d4a88ff67269 /content/browser/gpu/gpu_process_host.h | |
parent | 461a0dfec2e9a6046b93844ea9ac3fc7c876d5f2 (diff) | |
download | chromium_src-6395479cb45348d2049bcb1a5a49988ec00eb465.zip chromium_src-6395479cb45348d2049bcb1a5a49988ec00eb465.tar.gz chromium_src-6395479cb45348d2049bcb1a5a49988ec00eb465.tar.bz2 |
Remove TabContentsView methods that just call to the delegate, and have them be part of the delegate interface instead. This is towards making TabContentsView just an interface.
BUG=87702
Review URL: http://codereview.chromium.org/7277027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r-- | content/browser/gpu/gpu_process_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h index 93fd311..c50af2e 100644 --- a/content/browser/gpu/gpu_process_host.h +++ b/content/browser/gpu/gpu_process_host.h @@ -28,6 +28,8 @@ class GpuMainThread; class GpuProcessHost : public BrowserChildProcessHost, public base::NonThreadSafe { public: + static bool gpu_enabled() { return gpu_enabled_; } + // Creates a new GpuProcessHost or gets one for a particular // renderer process, resulting in the launching of a GPU process if required. // Returns null on failure. It is not safe to store the pointer once control @@ -148,6 +150,11 @@ class GpuProcessHost : public BrowserChildProcessHost, scoped_ptr<GpuMainThread> in_process_gpu_thread_; + // Master switch for enabling/disabling GPU acceleration for the current + // browser session. It does not change the acceleration settings for + // existing tabs, just the future ones. + static bool gpu_enabled_; + DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); }; |