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

Unified Diff: content/public/browser/gpu_data_manager.h

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: first round of tryfixes Created 6 years, 4 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
Index: content/public/browser/gpu_data_manager.h
diff --git a/content/public/browser/gpu_data_manager.h b/content/public/browser/gpu_data_manager.h
index 7ffc9f18402a86cc082738bac939854dc394476f..ee2637bd748af6b2b2b3993c0331dde188b661bb 100644
--- a/content/public/browser/gpu_data_manager.h
+++ b/content/public/browser/gpu_data_manager.h
@@ -94,6 +94,14 @@ class GpuDataManager {
std::string* gl_renderer,
std::string* gl_version) = 0;
+ // Tells the data manager that it should use WARP software rendering on
+ // Windows. This state will persist between program runs.
+ virtual void SetShouldUseWarp(bool use_warp) = 0;
+
+ // Returns current state about WARP, which may be due to command-line
+ // arguments or saved state.
+ virtual bool ShouldUseWarp() const = 0;
+
// Turn off all hardware acceleration.
virtual void DisableHardwareAcceleration() = 0;

Powered by Google App Engine
This is Rietveld 408576698