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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Turn off all hardware acceleration. | 97 // Turn off all hardware acceleration. |
98 virtual void DisableHardwareAcceleration() = 0; | 98 virtual void DisableHardwareAcceleration() = 0; |
99 | 99 |
100 // Whether the browser compositor can be used. | 100 // Whether the browser compositor can be used. |
101 virtual bool CanUseGpuBrowserCompositor() const = 0; | 101 virtual bool CanUseGpuBrowserCompositor() const = 0; |
102 | 102 |
| 103 // Whether WebGL extension WEBGL_debug_renderer_info is allowed for a |
| 104 // given domain. |
| 105 virtual bool IsWebGLDebugRendererInfoAllowed(const GURL& url) const = 0; |
| 106 |
103 protected: | 107 protected: |
104 virtual ~GpuDataManager() {} | 108 virtual ~GpuDataManager() {} |
105 }; | 109 }; |
106 | 110 |
107 }; // namespace content | 111 }; // namespace content |
108 | 112 |
109 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 113 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
OLD | NEW |