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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 header(_header), | 191 header(_header), |
192 message(_message) { } | 192 message(_message) { } |
193 }; | 193 }; |
194 | 194 |
195 explicit GpuDataManagerImplPrivate(GpuDataManagerImpl* owner); | 195 explicit GpuDataManagerImplPrivate(GpuDataManagerImpl* owner); |
196 | 196 |
197 void InitializeImpl(const std::string& gpu_blacklist_json, | 197 void InitializeImpl(const std::string& gpu_blacklist_json, |
198 const std::string& gpu_driver_bug_list_json, | 198 const std::string& gpu_driver_bug_list_json, |
199 const gpu::GPUInfo& gpu_info); | 199 const gpu::GPUInfo& gpu_info); |
200 | 200 |
| 201 void RunPostInitTasks(); |
| 202 |
201 void UpdateGpuInfoHelper(); | 203 void UpdateGpuInfoHelper(); |
202 | 204 |
203 void UpdateBlacklistedFeatures(const std::set<int>& features); | 205 void UpdateBlacklistedFeatures(const std::set<int>& features); |
204 | 206 |
205 // This should only be called once at initialization time, when preliminary | 207 // This should only be called once at initialization time, when preliminary |
206 // gpu info is collected. | 208 // gpu info is collected. |
207 void UpdatePreliminaryBlacklistedFeatures(); | 209 void UpdatePreliminaryBlacklistedFeatures(); |
208 | 210 |
209 // Update the GPU switching status. | 211 // Update the GPU switching status. |
210 // This should only be called once at initialization time. | 212 // This should only be called once at initialization time. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // If one tries to call a member before initialization then it is defered | 282 // If one tries to call a member before initialization then it is defered |
281 // until Initialize() is completed. | 283 // until Initialize() is completed. |
282 std::vector<base::Closure> post_init_tasks_; | 284 std::vector<base::Closure> post_init_tasks_; |
283 | 285 |
284 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 286 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
285 }; | 287 }; |
286 | 288 |
287 } // namespace content | 289 } // namespace content |
288 | 290 |
289 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 291 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
OLD | NEW |