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

Side by Side 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 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 CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // decision. 87 // decision.
88 virtual void SetGLStrings(const std::string& gl_vendor, 88 virtual void SetGLStrings(const std::string& gl_vendor,
89 const std::string& gl_renderer, 89 const std::string& gl_renderer,
90 const std::string& gl_version) = 0; 90 const std::string& gl_version) = 0;
91 91
92 // Obtain collected GL strings. 92 // Obtain collected GL strings.
93 virtual void GetGLStrings(std::string* gl_vendor, 93 virtual void GetGLStrings(std::string* gl_vendor,
94 std::string* gl_renderer, 94 std::string* gl_renderer,
95 std::string* gl_version) = 0; 95 std::string* gl_version) = 0;
96 96
97 // Tells the data manager that it should use WARP software rendering on
98 // Windows. This state will persist between program runs.
99 virtual void SetShouldUseWarp(bool use_warp) = 0;
100
101 // Returns current state about WARP, which may be due to command-line
102 // arguments or saved state.
103 virtual bool ShouldUseWarp() const = 0;
104
97 // Turn off all hardware acceleration. 105 // Turn off all hardware acceleration.
98 virtual void DisableHardwareAcceleration() = 0; 106 virtual void DisableHardwareAcceleration() = 0;
99 107
100 // Whether the browser compositor can be used. 108 // Whether the browser compositor can be used.
101 virtual bool CanUseGpuBrowserCompositor() const = 0; 109 virtual bool CanUseGpuBrowserCompositor() const = 0;
102 110
103 protected: 111 protected:
104 virtual ~GpuDataManager() {} 112 virtual ~GpuDataManager() {}
105 }; 113 };
106 114
107 }; // namespace content 115 }; // namespace content
108 116
109 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 117 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698