Index: content/browser/gpu/gpu_process_host.cc |
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
index b15d0dbd2129cab22a97998e28eaaaeca99559cf..3433b55b971152f985d05fb3d663158639a76bdb 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -36,7 +36,6 @@ |
#include "content/common/view_messages.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/content_browser_client.h" |
-#include "content/public/browser/gpu_utils.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
@@ -45,7 +44,6 @@ |
#include "content/public/common/result_codes.h" |
#include "content/public/common/sandbox_type.h" |
#include "content/public/common/sandboxed_process_launcher_delegate.h" |
-#include "gpu/command_buffer/service/gpu_preferences.h" |
#include "gpu/command_buffer/service/gpu_switches.h" |
#include "ipc/ipc_channel_handle.h" |
#include "ipc/ipc_switches.h" |
@@ -107,6 +105,7 @@ |
#endif |
switches::kEnableHeapProfiling, |
switches::kEnableLogging, |
+ switches::kEnableShareGroupAsyncTextureUpload, |
#if defined(OS_ANDROID) |
switches::kEnableUnifiedMediaPipeline, |
#endif |
@@ -135,6 +134,9 @@ |
switches::kEnableSandboxLogging, |
switches::kShowMacOverlayBorders, |
#endif |
+#if defined(USE_AURA) |
+ switches::kUIPrioritizeInGpuProcess, |
+#endif |
#if defined(USE_OZONE) |
switches::kOzonePlatform, |
#endif |
@@ -544,8 +546,7 @@ |
DCHECK(g_gpu_main_thread_factory); |
in_process_gpu_thread_.reset( |
g_gpu_main_thread_factory(InProcessChildThreadParams( |
- channel_id, base::MessageLoop::current()->task_runner()), |
- GetGpuPreferencesFromCommandLine())); |
+ channel_id, base::MessageLoop::current()->task_runner()))); |
base::Thread::Options options; |
#if defined(OS_WIN) |
// WGL needs to create its own window and pump messages on it. |
@@ -561,7 +562,7 @@ |
return false; |
} |
- if (!Send(new GpuMsg_Initialize(GetGpuPreferencesFromCommandLine()))) |
+ if (!Send(new GpuMsg_Initialize())) |
return false; |
return true; |
@@ -981,12 +982,12 @@ |
if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) |
cmd_line->AppendSwitch(switches::kDisableGpuSandbox); |
- // TODO(penghuang): Replace all GPU related switches with GpuPreferences. |
- // https://crbug.com/590825 |
// If you want a browser command-line switch passed to the GPU process |
// you need to add it to |kSwitchNames| at the beginning of this file. |
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
arraysize(kSwitchNames)); |
+ cmd_line->CopySwitchesFrom( |
+ browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
cmd_line->CopySwitchesFrom( |
browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, |
switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); |