| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 switches::kEnableCompositedScrollingForFrames); | 59 switches::kEnableCompositedScrollingForFrames); |
| 60 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); | 60 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); |
| 61 parsed_command_line->AppendSwitch(switches::kEnableDeadlineScheduling); | 61 parsed_command_line->AppendSwitch(switches::kEnableDeadlineScheduling); |
| 62 | 62 |
| 63 parsed_command_line->AppendSwitch(switches::kDisableGestureDebounce); | 63 parsed_command_line->AppendSwitch(switches::kDisableGestureDebounce); |
| 64 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); | 64 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); |
| 65 parsed_command_line->AppendSwitch(switches::kEnablePinch); | 65 parsed_command_line->AppendSwitch(switches::kEnablePinch); |
| 66 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); | 66 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); |
| 67 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbars); | 67 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbars); |
| 68 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); | 68 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); |
| 69 parsed_command_line->AppendSwitchASCII(switches::kTouchAckTimeoutDelayMs, |
| 70 "200"); |
| 69 | 71 |
| 70 // Run the GPU service as a thread in the browser instead of as a | 72 // Run the GPU service as a thread in the browser instead of as a |
| 71 // standalone process. | 73 // standalone process. |
| 72 parsed_command_line->AppendSwitch(switches::kInProcessGPU); | 74 parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
| 73 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); | 75 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); |
| 74 | 76 |
| 75 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 77 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
| 76 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); | 78 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); |
| 77 parsed_command_line->AppendSwitch( | 79 parsed_command_line->AppendSwitch( |
| 78 switches::kMainFrameResizesAreOrientationChanges); | 80 switches::kMainFrameResizesAreOrientationChanges); |
| 79 | 81 |
| 80 // Disable anti-aliasing. | 82 // Disable anti-aliasing. |
| 81 parsed_command_line->AppendSwitch( | 83 parsed_command_line->AppendSwitch( |
| 82 cc::switches::kDisableCompositedAntialiasing); | 84 cc::switches::kDisableCompositedAntialiasing); |
| 83 | 85 |
| 84 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); | 86 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); |
| 85 | 87 |
| 86 if (!plugin_descriptor.empty()) { | 88 if (!plugin_descriptor.empty()) { |
| 87 parsed_command_line->AppendSwitchNative( | 89 parsed_command_line->AppendSwitchNative( |
| 88 switches::kRegisterPepperPlugins, plugin_descriptor); | 90 switches::kRegisterPepperPlugins, plugin_descriptor); |
| 89 } | 91 } |
| 90 } | 92 } |
| 91 | 93 |
| 92 } // namespace content | 94 } // namespace content |
| OLD | NEW |