OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PRIVATE_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 | 95 |
96 void DisableDomainBlockingFor3DAPIsForTesting(); | 96 void DisableDomainBlockingFor3DAPIsForTesting(); |
97 | 97 |
98 void Notify3DAPIBlocked(const GURL& url, | 98 void Notify3DAPIBlocked(const GURL& url, |
99 int render_process_id, | 99 int render_process_id, |
100 int render_view_id, | 100 int render_view_id, |
101 ThreeDAPIType requester); | 101 ThreeDAPIType requester); |
102 | 102 |
103 size_t GetBlacklistedFeatureCount() const; | 103 size_t GetBlacklistedFeatureCount() const; |
104 | 104 |
105 void SetDisplayCount(unsigned int display_count); | |
106 unsigned int GetDisplayCount() const; | |
Zhenyao Mo
2013/05/17 22:27:55
FYI: this is actually against code style
accessor
| |
107 | |
105 virtual ~GpuDataManagerImplPrivate(); | 108 virtual ~GpuDataManagerImplPrivate(); |
106 | 109 |
107 private: | 110 private: |
108 friend class GpuDataManagerImplPrivateTest; | 111 friend class GpuDataManagerImplPrivateTest; |
109 | 112 |
110 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, | 113 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, |
111 GpuSideBlacklisting); | 114 GpuSideBlacklisting); |
112 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, | 115 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, |
113 GpuSideExceptions); | 116 GpuSideExceptions); |
114 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, | 117 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 | 226 |
224 // Number of currently open windows, to be used in gpu memory allocation. | 227 // Number of currently open windows, to be used in gpu memory allocation. |
225 int window_count_; | 228 int window_count_; |
226 | 229 |
227 DomainBlockMap blocked_domains_; | 230 DomainBlockMap blocked_domains_; |
228 mutable std::list<base::Time> timestamps_of_gpu_resets_; | 231 mutable std::list<base::Time> timestamps_of_gpu_resets_; |
229 bool domain_blocking_enabled_; | 232 bool domain_blocking_enabled_; |
230 | 233 |
231 GpuDataManagerImpl* owner_; | 234 GpuDataManagerImpl* owner_; |
232 | 235 |
236 unsigned int display_count_; | |
237 | |
233 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 238 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
234 }; | 239 }; |
235 | 240 |
236 } // namespace content | 241 } // namespace content |
237 | 242 |
238 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 243 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
239 | 244 |
OLD | NEW |