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

Unified Diff: gpu/config/gpu_info_collector_win.cc

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: rebased 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: gpu/config/gpu_info_collector_win.cc
diff --git a/gpu/config/gpu_info_collector_win.cc b/gpu/config/gpu_info_collector_win.cc
index 8968d41a2a7f3c9bb1148f670f2cce847af592ce..8e39683b662970df1e52e49b400e614e063877ed 100644
--- a/gpu/config/gpu_info_collector_win.cc
+++ b/gpu/config/gpu_info_collector_win.cc
@@ -632,6 +632,18 @@ CollectInfoResult CollectBasicGraphicsInfo(GPUInfo* gpu_info) {
return kCollectInfoSuccess;
}
+namespace {
+ static bool g_should_fallback_to_warp = false;
Zhenyao Mo 2014/08/29 18:28:50 I don't think static is necessary if it's inside a
luken 2014/08/29 23:34:03 Deprecated code, but thanks for today's C++ fact l
+}
+
+bool ShouldFallbackToWarp() {
+ return g_should_fallback_to_warp;
+}
+
+void SetShouldFallbackToWarp(bool enable) {
+ g_should_fallback_to_warp = enable;
+}
+
CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) {
TRACE_EVENT0("gpu", "CollectDriverInfoGL");

Powered by Google App Engine
This is Rietveld 408576698