| 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 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // If flags hasn't been set and GPUInfo is available, run through blacklist | 59 // If flags hasn't been set and GPUInfo is available, run through blacklist |
| 60 // and compute the flags. | 60 // and compute the flags. |
| 61 void UpdateGpuFeatureFlags(); | 61 void UpdateGpuFeatureFlags(); |
| 62 | 62 |
| 63 // Call all callbacks. | 63 // Call all callbacks. |
| 64 void RunGpuInfoUpdateCallbacks(); | 64 void RunGpuInfoUpdateCallbacks(); |
| 65 | 65 |
| 66 bool gpu_feature_flags_set_; | 66 bool gpu_feature_flags_set_; |
| 67 GpuFeatureFlags gpu_feature_flags_; | 67 GpuFeatureFlags gpu_feature_flags_; |
| 68 | 68 |
| 69 // This indicates that we already passed command-line flags for the flags |
| 70 // so there is no need to apply the flags again, i.e., GetGpuFeatureFlags() |
| 71 // should return 0 if this is true. |
| 72 bool gpu_feature_flags_applied_; |
| 73 |
| 69 GPUInfo gpu_info_; | 74 GPUInfo gpu_info_; |
| 70 | 75 |
| 71 scoped_ptr<GpuBlacklist> gpu_blacklist_; | 76 scoped_ptr<GpuBlacklist> gpu_blacklist_; |
| 72 | 77 |
| 73 scoped_refptr<GpuBlacklistUpdater> gpu_blacklist_updater_; | 78 scoped_refptr<GpuBlacklistUpdater> gpu_blacklist_updater_; |
| 74 // This is the version cached in local state that's automatically updated | 79 // This is the version cached in local state that's automatically updated |
| 75 // from the web. | 80 // from the web. |
| 76 DictionaryValue* gpu_blacklist_cache_; | 81 DictionaryValue* gpu_blacklist_cache_; |
| 77 | 82 |
| 78 // Map of callbacks. | 83 // Map of callbacks. |
| 79 std::set<Callback0::Type*> gpu_info_update_callbacks_; | 84 std::set<Callback0::Type*> gpu_info_update_callbacks_; |
| 80 | 85 |
| 81 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); | 86 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); |
| 82 }; | 87 }; |
| 83 | 88 |
| 84 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 89 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
| 85 | 90 |
| OLD | NEW |