| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/common/gpu_feature_type.h" | 11 #include "content/public/common/gpu_feature_type.h" |
| 12 #include "content/public/common/gpu_switching_option.h" | 12 #include "content/public/common/gpu_switching_option.h" |
| 13 | 13 |
| 14 class FilePath; | 14 class FilePath; |
| 15 class GURL; |
| 15 | 16 |
| 16 namespace base { | 17 namespace base { |
| 17 class ListValue; | 18 class ListValue; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 | 22 |
| 22 class GpuDataManagerObserver; | 23 class GpuDataManagerObserver; |
| 23 struct GPUInfo; | 24 struct GPUInfo; |
| 24 | 25 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 78 |
| 78 // Registers/unregister |observer|. | 79 // Registers/unregister |observer|. |
| 79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 80 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
| 80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 81 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
| 81 | 82 |
| 82 // Notifies the gpu process about the number of browser windows, so | 83 // Notifies the gpu process about the number of browser windows, so |
| 83 // they can be used to determine managed memory allocation. | 84 // they can be used to determine managed memory allocation. |
| 84 virtual void SetWindowCount(uint32 count) = 0; | 85 virtual void SetWindowCount(uint32 count) = 0; |
| 85 virtual uint32 GetWindowCount() const = 0; | 86 virtual uint32 GetWindowCount() const = 0; |
| 86 | 87 |
| 88 // Allows a given domain previously blocked from accessing 3D APIs |
| 89 // to access them again. |
| 90 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; |
| 91 // Disables domain blocking for 3D APIs. For use only in tests. |
| 92 virtual void DisableDomainBlockingFor3DAPIsForTesting() = 0; |
| 93 |
| 87 protected: | 94 protected: |
| 88 virtual ~GpuDataManager() {} | 95 virtual ~GpuDataManager() {} |
| 89 }; | 96 }; |
| 90 | 97 |
| 91 }; // namespace content | 98 }; // namespace content |
| 92 | 99 |
| 93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 100 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |