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

Unified Diff: chrome/browser/gpu/gpu_pref_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: chrome/browser/gpu/gpu_pref_manager.h
diff --git a/chrome/browser/gpu/gl_string_manager.h b/chrome/browser/gpu/gpu_pref_manager.h
similarity index 59%
rename from chrome/browser/gpu/gl_string_manager.h
rename to chrome/browser/gpu/gpu_pref_manager.h
index 655cf173c009308447568676ab3f7a06e21f93f3..c7bce9786e7fbc85fee27851865e133242444ea6 100644
--- a/chrome/browser/gpu/gl_string_manager.h
+++ b/chrome/browser/gpu/gpu_pref_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_
-#define CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_
+#ifndef CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_
+#define CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_
#include <string>
@@ -12,14 +12,14 @@
class PrefRegistrySimple;
-class GLStringManager : public content::GpuDataManagerObserver {
+class GpuPrefManager : public content::GpuDataManagerObserver {
public:
static void RegisterPrefs(PrefRegistrySimple* registry);
- GLStringManager();
- virtual ~GLStringManager();
+ GpuPrefManager();
+ virtual ~GpuPrefManager();
- // Get cached GL strings in local state and send them to GpuDataManager.
+ // Get cached strings in local state and send them to GpuDataManager.
void Initialize();
// content::GpuDataManagerObserver
@@ -29,9 +29,10 @@ class GLStringManager : public content::GpuDataManagerObserver {
std::string gl_vendor_;
std::string gl_renderer_;
std::string gl_version_;
+ bool use_warp_;
- DISALLOW_COPY_AND_ASSIGN(GLStringManager);
+ DISALLOW_COPY_AND_ASSIGN(GpuPrefManager);
};
-#endif // CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_
+#endif // CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698