OLD | NEW |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // decision. | 97 // decision. |
98 virtual void SetGLStrings(const std::string& gl_vendor, | 98 virtual void SetGLStrings(const std::string& gl_vendor, |
99 const std::string& gl_renderer, | 99 const std::string& gl_renderer, |
100 const std::string& gl_version) = 0; | 100 const std::string& gl_version) = 0; |
101 | 101 |
102 // Obtain collected GL strings. | 102 // Obtain collected GL strings. |
103 virtual void GetGLStrings(std::string* gl_vendor, | 103 virtual void GetGLStrings(std::string* gl_vendor, |
104 std::string* gl_renderer, | 104 std::string* gl_renderer, |
105 std::string* gl_version) = 0; | 105 std::string* gl_version) = 0; |
106 | 106 |
| 107 // Sets GPU device info. Allows content embedder to supply this info on |
| 108 // platforms where CollectBasicGraphicsInfo is unable to determine |
| 109 // vendor id or device id. |
| 110 virtual void SetGpuDeviceName(const std::string& vendor, |
| 111 const std::string& device) = 0; |
| 112 |
107 // Turn off all hardware acceleration. | 113 // Turn off all hardware acceleration. |
108 virtual void DisableHardwareAcceleration() = 0; | 114 virtual void DisableHardwareAcceleration() = 0; |
109 | 115 |
110 // Whether the browser compositor can be used. | 116 // Whether the browser compositor can be used. |
111 virtual bool CanUseGpuBrowserCompositor() const = 0; | 117 virtual bool CanUseGpuBrowserCompositor() const = 0; |
112 | 118 |
113 protected: | 119 protected: |
114 virtual ~GpuDataManager() {} | 120 virtual ~GpuDataManager() {} |
115 }; | 121 }; |
116 | 122 |
117 }; // namespace content | 123 }; // namespace content |
118 | 124 |
119 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 125 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
OLD | NEW |