| 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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // The same as above, except that the GPUInfo is provided. | 35 // The same as above, except that the GPUInfo is provided. |
| 36 // For testing only. | 36 // For testing only. |
| 37 virtual void Initialize(const std::string& browser_version_string, | 37 virtual void Initialize(const std::string& browser_version_string, |
| 38 const std::string& gpu_blacklist_json, | 38 const std::string& gpu_blacklist_json, |
| 39 const content::GPUInfo& gpu_info) = 0; | 39 const content::GPUInfo& gpu_info) = 0; |
| 40 | 40 |
| 41 virtual std::string GetBlacklistVersion() const = 0; | 41 virtual std::string GetBlacklistVersion() const = 0; |
| 42 | 42 |
| 43 virtual GpuFeatureType GetBlacklistedFeatures() const = 0; | 43 virtual GpuFeatureType GetBlacklistedFeatures() const = 0; |
| 44 | 44 |
| 45 virtual GpuSwitchingOption GetGpuSwitchingOption() const = 0; |
| 46 |
| 45 // Returns the reasons for the latest run of blacklisting decisions. | 47 // Returns the reasons for the latest run of blacklisting decisions. |
| 46 // For the structure of returned value, see documentation for | 48 // For the structure of returned value, see documentation for |
| 47 // GpuBlacklist::GetBlacklistedReasons(). | 49 // GpuBlacklist::GetBlacklistedReasons(). |
| 48 // Caller is responsible to release the returned value. | 50 // Caller is responsible to release the returned value. |
| 49 virtual base::ListValue* GetBlacklistReasons() const = 0; | 51 virtual base::ListValue* GetBlacklistReasons() const = 0; |
| 50 | 52 |
| 51 virtual GPUInfo GetGPUInfo() const = 0; | 53 virtual GPUInfo GetGPUInfo() const = 0; |
| 52 | 54 |
| 53 // This indicator might change because we could collect more GPU info or | 55 // This indicator might change because we could collect more GPU info or |
| 54 // because the GPU blacklist could be updated. | 56 // because the GPU blacklist could be updated. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 84 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 86 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
| 85 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 87 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
| 86 | 88 |
| 87 protected: | 89 protected: |
| 88 virtual ~GpuDataManager() {} | 90 virtual ~GpuDataManager() {} |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 }; // namespace content | 93 }; // namespace content |
| 92 | 94 |
| 93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 95 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |