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_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 private: | 88 private: |
89 typedef ObserverListThreadSafe<content::GpuDataManagerObserver> | 89 typedef ObserverListThreadSafe<content::GpuDataManagerObserver> |
90 GpuDataManagerObserverList; | 90 GpuDataManagerObserverList; |
91 | 91 |
92 friend class GpuDataManagerImplTest; | 92 friend class GpuDataManagerImplTest; |
93 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; | 93 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; |
94 | 94 |
95 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideBlacklisting); | 95 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideBlacklisting); |
96 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideExceptions); | 96 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideExceptions); |
97 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, BlacklistCard); | 97 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, BlacklistCard); |
| 98 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, SoftwareRendering); |
| 99 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, SoftwareRendering2); |
98 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuInfoUpdate); | 100 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuInfoUpdate); |
99 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, | 101 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, |
100 GPUVideoMemoryUsageStatsUpdate); | 102 GPUVideoMemoryUsageStatsUpdate); |
101 | 103 |
102 GpuDataManagerImpl(); | 104 GpuDataManagerImpl(); |
103 virtual ~GpuDataManagerImpl(); | 105 virtual ~GpuDataManagerImpl(); |
104 | 106 |
105 void InitializeImpl(const std::string& gpu_blacklist_json, | 107 void InitializeImpl(const std::string& gpu_blacklist_json, |
106 const content::GPUInfo& gpu_info); | 108 const content::GPUInfo& gpu_info); |
107 | 109 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 bool card_blacklisted_; | 148 bool card_blacklisted_; |
147 | 149 |
148 // We disable histogram stuff in testing, especially in unit tests because | 150 // We disable histogram stuff in testing, especially in unit tests because |
149 // they cause random failures. | 151 // they cause random failures. |
150 bool update_histograms_; | 152 bool update_histograms_; |
151 | 153 |
152 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 154 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
153 }; | 155 }; |
154 | 156 |
155 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 157 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |