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 the blacklist. Caller is responsible for deleting the |
38 // if not blacklisted. Caller is responsible for deleting returned value. | 38 // returned value. |
39 Value* GetBlacklistingReasons() const; | 39 Value* GetBlacklistStatus() const; |
40 | 40 |
41 std::string GetBlacklistVersion() const; | 41 std::string GetBlacklistVersion() const; |
42 | 42 |
43 void AddLogMessage(Value* msg); | 43 void AddLogMessage(Value* msg); |
44 | 44 |
45 const ListValue& log_messages() const; | 45 const ListValue& log_messages() const; |
46 | 46 |
47 // If necessary, compute the flags before returning them. | 47 // If necessary, compute the flags before returning them. |
48 GpuFeatureFlags GetGpuFeatureFlags(); | 48 GpuFeatureFlags GetGpuFeatureFlags(); |
49 | 49 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Map of callbacks. | 107 // Map of callbacks. |
108 std::set<Callback0::Type*> gpu_info_update_callbacks_; | 108 std::set<Callback0::Type*> gpu_info_update_callbacks_; |
109 | 109 |
110 ListValue log_messages_; | 110 ListValue log_messages_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); | 112 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); |
113 }; | 113 }; |
114 | 114 |
115 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 115 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
OLD | NEW |