| 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); |
| 98 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuInfoUpdate); | 99 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuInfoUpdate); |
| 99 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, | 100 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, |
| 100 GPUVideoMemoryUsageStatsUpdate); | 101 GPUVideoMemoryUsageStatsUpdate); |
| 101 | 102 |
| 102 GpuDataManagerImpl(); | 103 GpuDataManagerImpl(); |
| 103 virtual ~GpuDataManagerImpl(); | 104 virtual ~GpuDataManagerImpl(); |
| 104 | 105 |
| 105 void InitializeImpl(const std::string& gpu_blacklist_json, | 106 void InitializeImpl(const std::string& gpu_blacklist_json, |
| 106 const content::GPUInfo& gpu_info); | 107 const content::GPUInfo& gpu_info); |
| 107 | 108 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool card_blacklisted_; | 147 bool card_blacklisted_; |
| 147 | 148 |
| 148 // We disable histogram stuff in testing, especially in unit tests because | 149 // We disable histogram stuff in testing, especially in unit tests because |
| 149 // they cause random failures. | 150 // they cause random failures. |
| 150 bool update_histograms_; | 151 bool update_histograms_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 153 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 156 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |