| 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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/public/common/gpu_feature_type.h" | 9 #include "content/public/common/gpu_feature_type.h" |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // process, establish GPU channel, and GPU info collection, should be | 40 // process, establish GPU channel, and GPU info collection, should be |
| 41 // blocked. | 41 // blocked. |
| 42 // Can be called on any thread. | 42 // Can be called on any thread. |
| 43 virtual bool GpuAccessAllowed() = 0; | 43 virtual bool GpuAccessAllowed() = 0; |
| 44 | 44 |
| 45 // Requests complete GPUinfo if it has not already been requested | 45 // Requests complete GPUinfo if it has not already been requested |
| 46 virtual void RequestCompleteGpuInfoIfNeeded() = 0; | 46 virtual void RequestCompleteGpuInfoIfNeeded() = 0; |
| 47 | 47 |
| 48 virtual bool IsCompleteGPUInfoAvailable() const = 0; | 48 virtual bool IsCompleteGPUInfoAvailable() const = 0; |
| 49 | 49 |
| 50 virtual void RequestVidmemUpdate() = 0; |
| 51 |
| 50 // Returns true if the software rendering should currently be used. | 52 // Returns true if the software rendering should currently be used. |
| 51 virtual bool ShouldUseSoftwareRendering() = 0; | 53 virtual bool ShouldUseSoftwareRendering() = 0; |
| 52 | 54 |
| 53 // Register a path to the SwiftShader software renderer. | 55 // Register a path to the SwiftShader software renderer. |
| 54 virtual void RegisterSwiftShaderPath(const FilePath& path) = 0; | 56 virtual void RegisterSwiftShaderPath(const FilePath& path) = 0; |
| 55 | 57 |
| 56 virtual const base::ListValue& GetLogMessages() const = 0; | 58 virtual const base::ListValue& GetLogMessages() const = 0; |
| 57 | 59 |
| 58 // Registers/unregister |observer|. | 60 // Registers/unregister |observer|. |
| 59 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 61 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
| 60 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 62 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
| 61 | 63 |
| 62 protected: | 64 protected: |
| 63 virtual ~GpuDataManager() {} | 65 virtual ~GpuDataManager() {} |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 }; // namespace content | 68 }; // namespace content |
| 67 | 69 |
| 68 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 70 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |