Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.h

Issue 1773073003: Make sure to run post init tasks even if kSkipGpuDataLoading is set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698