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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 84a226e309389759f573ceca2f795467a039ce10..6e74459f0f2d3391a4df02cc92ce4c1acd63807d 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -513,8 +513,10 @@ void GpuDataManagerImplPrivate::Initialize() {
}
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kSkipGpuDataLoading))
+ if (command_line->HasSwitch(switches::kSkipGpuDataLoading)) {
+ RunPostInitTasks();
return;
+ }
gpu::GPUInfo gpu_info;
if (command_line->GetSwitchValueASCII(
@@ -1068,6 +1070,10 @@ void GpuDataManagerImplPrivate::InitializeImpl(
UpdateGpuSwitchingManager(gpu_info);
UpdatePreliminaryBlacklistedFeatures();
+ RunPostInitTasks();
+}
+
+void GpuDataManagerImplPrivate::RunPostInitTasks() {
// Set initialized before running callbacks.
is_initialized_ = true;
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698