| 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);
|
| };
|
|
|
|
|