| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Requests that the GPU process report its current video memory usage stats, | 65 // Requests that the GPU process report its current video memory usage stats, |
| 66 // which can be retrieved via the GPU data manager's on-update function. | 66 // which can be retrieved via the GPU data manager's on-update function. |
| 67 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; | 67 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; |
| 68 | 68 |
| 69 // Returns true if SwiftShader should be used. | 69 // Returns true if SwiftShader should be used. |
| 70 virtual bool ShouldUseSwiftShader() const = 0; | 70 virtual bool ShouldUseSwiftShader() const = 0; |
| 71 | 71 |
| 72 // Register a path to SwiftShader. | 72 // Register a path to SwiftShader. |
| 73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; | 73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; |
| 74 | 74 |
| 75 // Returns current state about WARP, which may be due to command-line |
| 76 // arguments or saved state. |
| 77 virtual bool ShouldUseWarp() const = 0; |
| 78 |
| 75 // Registers/unregister |observer|. | 79 // Registers/unregister |observer|. |
| 76 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 80 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
| 77 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 81 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
| 78 | 82 |
| 79 // Allows a given domain previously blocked from accessing 3D APIs | 83 // Allows a given domain previously blocked from accessing 3D APIs |
| 80 // to access them again. | 84 // to access them again. |
| 81 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; | 85 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; |
| 82 | 86 |
| 83 // Disable the gpu process watchdog thread. | 87 // Disable the gpu process watchdog thread. |
| 84 virtual void DisableGpuWatchdog() = 0; | 88 virtual void DisableGpuWatchdog() = 0; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 100 // Whether the browser compositor can be used. | 104 // Whether the browser compositor can be used. |
| 101 virtual bool CanUseGpuBrowserCompositor() const = 0; | 105 virtual bool CanUseGpuBrowserCompositor() const = 0; |
| 102 | 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 |