| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/android/content_startup_flags.h" | 5 #include "content/browser/android/content_startup_flags.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // we are implementing an embedded WebView. | 51 // we are implementing an embedded WebView. |
| 52 parsed_command_line->AppendSwitch(switches::kSingleProcess); | 52 parsed_command_line->AppendSwitch(switches::kSingleProcess); |
| 53 } | 53 } |
| 54 | 54 |
| 55 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); | 55 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); |
| 56 | 56 |
| 57 parsed_command_line->AppendSwitch(switches::kEnablePinch); | 57 parsed_command_line->AppendSwitch(switches::kEnablePinch); |
| 58 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); | 58 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); |
| 59 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); | 59 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); |
| 60 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); | 60 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); |
| 61 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); |
| 61 | 62 |
| 62 // Run the GPU service as a thread in the browser instead of as a | 63 // Run the GPU service as a thread in the browser instead of as a |
| 63 // standalone process. | 64 // standalone process. |
| 64 parsed_command_line->AppendSwitch(switches::kInProcessGPU); | 65 parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
| 65 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); | 66 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); |
| 66 | 67 |
| 67 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 68 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
| 68 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); | 69 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); |
| 69 parsed_command_line->AppendSwitch( | 70 parsed_command_line->AppendSwitch( |
| 70 switches::kMainFrameResizesAreOrientationChanges); | 71 switches::kMainFrameResizesAreOrientationChanges); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 83 } | 84 } |
| 84 | 85 |
| 85 // Disable profiler timing by default. | 86 // Disable profiler timing by default. |
| 86 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 87 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
| 87 parsed_command_line->AppendSwitchASCII( | 88 parsed_command_line->AppendSwitchASCII( |
| 88 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 89 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
| 89 } | 90 } |
| 90 } | 91 } |
| 91 | 92 |
| 92 } // namespace content | 93 } // namespace content |
| OLD | NEW |