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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.h

Issue 5334003: Added a master switch to enable/disable gpu acceleration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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/tab_contents/render_view_host_delegate_helper.h
===================================================================
--- chrome/browser/tab_contents/render_view_host_delegate_helper.h (revision 67133)
+++ chrome/browser/tab_contents/render_view_host_delegate_helper.h (working copy)
@@ -104,9 +104,17 @@
const std::string& value);
static void ClearInspectorSettings(Profile* profile);
+ static bool gpu_enabled() { return gpu_enabled_; }
+ static void set_gpu_enabled(bool enabled) { gpu_enabled_ = enabled; }
+
private:
RenderViewHostDelegateHelper();
+ // 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(RenderViewHostDelegateHelper);
};

Powered by Google App Engine
This is Rietveld 408576698