| 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 const std::string& gl_version) = 0; | 93 const std::string& gl_version) = 0; |
| 94 | 94 |
| 95 // Obtain collected GL strings. | 95 // Obtain collected GL strings. |
| 96 virtual void GetGLStrings(std::string* gl_vendor, | 96 virtual void GetGLStrings(std::string* gl_vendor, |
| 97 std::string* gl_renderer, | 97 std::string* gl_renderer, |
| 98 std::string* gl_version) = 0; | 98 std::string* gl_version) = 0; |
| 99 | 99 |
| 100 // Turn off all hardware acceleration. | 100 // Turn off all hardware acceleration. |
| 101 virtual void DisableHardwareAcceleration() = 0; | 101 virtual void DisableHardwareAcceleration() = 0; |
| 102 | 102 |
| 103 // Whether a GPU is in use (as opposed to a software renderer). |
| 104 virtual bool HardwareAccelerationEnabled() const = 0; |
| 105 |
| 103 // Whether the browser compositor can be used. | 106 // Whether the browser compositor can be used. |
| 104 virtual bool CanUseGpuBrowserCompositor() const = 0; | 107 virtual bool CanUseGpuBrowserCompositor() const = 0; |
| 105 | 108 |
| 106 // Extensions that are currently disabled. | 109 // Extensions that are currently disabled. |
| 107 virtual void GetDisabledExtensions( | 110 virtual void GetDisabledExtensions( |
| 108 std::string* disabled_extensions) const = 0; | 111 std::string* disabled_extensions) const = 0; |
| 109 | 112 |
| 110 // Sets the initial GPU information. This should happen before calculating | 113 // Sets the initial GPU information. This should happen before calculating |
| 111 // the backlists decision and applying commandline switches. | 114 // the backlists decision and applying commandline switches. |
| 112 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; | 115 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; |
| 113 | 116 |
| 114 protected: | 117 protected: |
| 115 virtual ~GpuDataManager() {} | 118 virtual ~GpuDataManager() {} |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 }; // namespace content | 121 }; // namespace content |
| 119 | 122 |
| 120 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 123 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |