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

Unified Diff: content/gpu/gpu_main.cc

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 958e40dc2425ed98eb86178d01f2bfdb879d4a2c..c3f2982b533ab1412b597d210658e82486c881af 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -401,7 +401,9 @@ int GpuMain(const MainFunctionParams& parameters) {
GpuProcess gpu_process(io_thread_priority);
+ const gpu::GpuPreferences* kGpuPreferences = nullptr;
boliu 2016/02/26 22:17:32 style: kGpuPreferences is only for static/global c
Peng 2016/02/29 16:09:22 Done.
GpuChildThread* child_thread = new GpuChildThread(
+ kGpuPreferences,
watchdog_thread.get(), dead_on_arrival, gpu_info, deferred_messages.Get(),
gpu_memory_buffer_factory.get(),
&sync_point_manager);

Powered by Google App Engine
This is Rietveld 408576698