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

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

Issue 1016033006: Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address dana's comment Created 5 years, 9 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 RenderProcessHost::SetMaxRendererProcessCount(limit); 47 RenderProcessHost::SetMaxRendererProcessCount(limit);
48 } 48 }
49 49
50 if (single_process || command_line_renderer_limit == 0) { 50 if (single_process || command_line_renderer_limit == 0) {
51 // Need to ensure the command line flag is consistent as a lot of chrome 51 // Need to ensure the command line flag is consistent as a lot of chrome
52 // internal code checks this directly, but it wouldn't normally get set when 52 // internal code checks this directly, but it wouldn't normally get set when
53 // we are implementing an embedded WebView. 53 // we are implementing an embedded WebView.
54 parsed_command_line->AppendSwitch(switches::kSingleProcess); 54 parsed_command_line->AppendSwitch(switches::kSingleProcess);
55 } 55 }
56 56
57 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling);
58
59 parsed_command_line->AppendSwitch(switches::kEnablePinch); 57 parsed_command_line->AppendSwitch(switches::kEnablePinch);
60 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); 58 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo);
61 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); 59 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar);
62 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); 60 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream);
63 61
64 // There is no software fallback on Android, so don't limit GPU crashes. 62 // There is no software fallback on Android, so don't limit GPU crashes.
65 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); 63 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit);
66 64
67 // On legacy low-memory devices the behavior has not been studied with regard 65 // On legacy low-memory devices the behavior has not been studied with regard
68 // to having an extra process with similar priority as the foreground renderer 66 // to having an extra process with similar priority as the foreground renderer
(...skipping 26 matching lines...) Expand all
95 } 93 }
96 94
97 // Disable profiler timing by default. 95 // Disable profiler timing by default.
98 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { 96 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
99 parsed_command_line->AppendSwitchASCII( 97 parsed_command_line->AppendSwitchASCII(
100 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); 98 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
101 } 99 }
102 } 100 }
103 101
104 } // namespace content 102 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698