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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_ 5 #ifndef CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_
6 #define CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_ 6 #define CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/public/browser/gpu_data_manager_observer.h" 11 #include "content/public/browser/gpu_data_manager_observer.h"
12 12
13 class PrefRegistrySimple; 13 class PrefRegistrySimple;
14 14
15 class GLStringManager : public content::GpuDataManagerObserver { 15 class GpuPrefManager : public content::GpuDataManagerObserver {
16 public: 16 public:
17 static void RegisterPrefs(PrefRegistrySimple* registry); 17 static void RegisterPrefs(PrefRegistrySimple* registry);
18 18
19 GLStringManager(); 19 GpuPrefManager();
20 virtual ~GLStringManager(); 20 virtual ~GpuPrefManager();
21 21
22 // Get cached GL strings in local state and send them to GpuDataManager. 22 // Get cached strings in local state and send them to GpuDataManager.
23 void Initialize(); 23 void Initialize();
24 24
25 // content::GpuDataManagerObserver 25 // content::GpuDataManagerObserver
26 virtual void OnGpuInfoUpdate() OVERRIDE; 26 virtual void OnGpuInfoUpdate() OVERRIDE;
27 27
28 private: 28 private:
29 std::string gl_vendor_; 29 std::string gl_vendor_;
30 std::string gl_renderer_; 30 std::string gl_renderer_;
31 std::string gl_version_; 31 std::string gl_version_;
32 bool use_warp_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(GLStringManager); 34 DISALLOW_COPY_AND_ASSIGN(GpuPrefManager);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_ 37 #endif // CHROME_BROWSER_GPU_GPU_PREF_MANAGER_H_
37 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698