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

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: Enable BeginFrame scheduling under flag Created 5 years, 7 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); 57 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling);
58 58
59 parsed_command_line->AppendSwitch(switches::kEnablePinch); 59 parsed_command_line->AppendSwitch(switches::kEnablePinch);
60 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); 60 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo);
61 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); 61 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar);
62 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); 62 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream);
63 63
64 // There is no software fallback on Android, so don't limit GPU crashes. 64 // There is no software fallback on Android, so don't limit GPU crashes.
65 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); 65 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit);
66 66
67 // On legacy low-memory devices the behavior has not been studied with regard 67 // On legacy low-memory devices the behavior has not been studied with regard
(...skipping 21 matching lines...) Expand all
89 } 89 }
90 90
91 // Disable profiler timing by default. 91 // Disable profiler timing by default.
92 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { 92 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
93 parsed_command_line->AppendSwitchASCII( 93 parsed_command_line->AppendSwitchASCII(
94 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); 94 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
95 } 95 }
96 } 96 }
97 97
98 } // namespace content 98 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698