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

Side by Side Diff: content/browser/android/content_startup_flags.cc

Issue 1939253002: Turn on enable begin frame scheduling by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 18 matching lines...) Expand all
29 base::CommandLine* parsed_command_line = 29 base::CommandLine* parsed_command_line =
30 base::CommandLine::ForCurrentProcess(); 30 base::CommandLine::ForCurrentProcess();
31 31
32 if (single_process) { 32 if (single_process) {
33 // Need to ensure the command line flag is consistent as a lot of chrome 33 // Need to ensure the command line flag is consistent as a lot of chrome
34 // internal code checks this directly, but it wouldn't normally get set when 34 // internal code checks this directly, but it wouldn't normally get set when
35 // we are implementing an embedded WebView. 35 // we are implementing an embedded WebView.
36 parsed_command_line->AppendSwitch(switches::kSingleProcess); 36 parsed_command_line->AppendSwitch(switches::kSingleProcess);
37 } 37 }
38 38
39 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling);
40
41 parsed_command_line->AppendSwitch(switches::kEnablePinch); 39 parsed_command_line->AppendSwitch(switches::kEnablePinch);
42 parsed_command_line->AppendSwitch(switches::kEnableViewport); 40 parsed_command_line->AppendSwitch(switches::kEnableViewport);
43 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); 41 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar);
44 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); 42 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream);
45 43
46 if (base::android::BuildInfo::GetInstance()->sdk_int() >= 44 if (base::android::BuildInfo::GetInstance()->sdk_int() >=
47 base::android::SDK_VERSION_MARSHMALLOW) { 45 base::android::SDK_VERSION_MARSHMALLOW) {
48 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection); 46 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection);
49 parsed_command_line->AppendSwitchASCII( 47 parsed_command_line->AppendSwitchASCII(
50 switches::kTouchTextSelectionStrategy, "direction"); 48 switches::kTouchTextSelectionStrategy, "direction");
(...skipping 24 matching lines...) Expand all
75 } 73 }
76 74
77 // Disable profiler timing by default. 75 // Disable profiler timing by default.
78 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { 76 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
79 parsed_command_line->AppendSwitchASCII( 77 parsed_command_line->AppendSwitchASCII(
80 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); 78 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
81 } 79 }
82 } 80 }
83 81
84 } // namespace content 82 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698