| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
| 6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 static GpuDataManager* GetInstance(); | 27 static GpuDataManager* GetInstance(); |
| 28 | 28 |
| 29 // Requests complete GPUinfo if it has not already been requested | 29 // Requests complete GPUinfo if it has not already been requested |
| 30 void RequestCompleteGpuInfoIfNeeded(); | 30 void RequestCompleteGpuInfoIfNeeded(); |
| 31 | 31 |
| 32 // Only update if the current GPUInfo is not finalized. | 32 // Only update if the current GPUInfo is not finalized. |
| 33 void UpdateGpuInfo(const GPUInfo& gpu_info); | 33 void UpdateGpuInfo(const GPUInfo& gpu_info); |
| 34 | 34 |
| 35 const GPUInfo& gpu_info() const; | 35 const GPUInfo& gpu_info() const; |
| 36 | 36 |
| 37 // Returns blacklisting reasons structure from gpu_blacklist or NULL | 37 // Returns status of various GPU features. Return type is |
| 38 // if not blacklisted. Caller is responsible for deleting returned value. | 38 // GpuBlacklist::GetFeatureStatus, or NULL if blacklist is |
| 39 Value* GetBlacklistingReasons() const; | 39 // uninitialized. Caller is responsible for deleting the returned value. |
| 40 Value* GetFeatureStatus(); |
| 40 | 41 |
| 41 std::string GetBlacklistVersion() const; | 42 std::string GetBlacklistVersion() const; |
| 42 | 43 |
| 43 void AddLogMessage(Value* msg); | 44 void AddLogMessage(Value* msg); |
| 44 | 45 |
| 45 const ListValue& log_messages() const; | 46 const ListValue& log_messages() const; |
| 46 | 47 |
| 47 // If necessary, compute the flags before returning them. | 48 // If necessary, compute the flags before returning them. |
| 48 GpuFeatureFlags GetGpuFeatureFlags(); | 49 GpuFeatureFlags GetGpuFeatureFlags(); |
| 49 | 50 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 107 |
| 107 // Map of callbacks. | 108 // Map of callbacks. |
| 108 std::set<Callback0::Type*> gpu_info_update_callbacks_; | 109 std::set<Callback0::Type*> gpu_info_update_callbacks_; |
| 109 | 110 |
| 110 ListValue log_messages_; | 111 ListValue log_messages_; |
| 111 | 112 |
| 112 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); | 113 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 116 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
| OLD | NEW |