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

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

Issue 927653003: Enabled shader disk cache on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // There is no software fallback on Android, so don't limit GPU crashes. 63 // There is no software fallback on Android, so don't limit GPU crashes.
64 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); 64 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit);
65 65
66 // On legacy low-memory devices the behavior has not been studied with regard 66 // On legacy low-memory devices the behavior has not been studied with regard
67 // to having an extra process with similar priority as the foreground renderer 67 // to having an extra process with similar priority as the foreground renderer
68 // and given that the system will often be looking for a process to be killed 68 // and given that the system will often be looking for a process to be killed
69 // on such systems. 69 // on such systems.
70 if (base::SysInfo::IsLowEndDevice()) 70 if (base::SysInfo::IsLowEndDevice())
71 parsed_command_line->AppendSwitch(switches::kInProcessGPU); 71 parsed_command_line->AppendSwitch(switches::kInProcessGPU);
72 72
73 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache);
74
75 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); 73 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta);
76 parsed_command_line->AppendSwitch( 74 parsed_command_line->AppendSwitch(
77 switches::kMainFrameResizesAreOrientationChanges); 75 switches::kMainFrameResizesAreOrientationChanges);
78 76
79 // Disable anti-aliasing. 77 // Disable anti-aliasing.
80 parsed_command_line->AppendSwitch( 78 parsed_command_line->AppendSwitch(
81 cc::switches::kDisableCompositedAntialiasing); 79 cc::switches::kDisableCompositedAntialiasing);
82 80
83 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); 81 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess);
84 82
85 parsed_command_line->AppendSwitch(switches::kEnableDelegatedRenderer); 83 parsed_command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
86 84
87 if (!plugin_descriptor.empty()) { 85 if (!plugin_descriptor.empty()) {
88 parsed_command_line->AppendSwitchNative( 86 parsed_command_line->AppendSwitchNative(
89 switches::kRegisterPepperPlugins, plugin_descriptor); 87 switches::kRegisterPepperPlugins, plugin_descriptor);
90 } 88 }
91 89
92 // Disable profiler timing by default. 90 // Disable profiler timing by default.
93 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { 91 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
94 parsed_command_line->AppendSwitchASCII( 92 parsed_command_line->AppendSwitchASCII(
95 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); 93 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
96 } 94 }
97 } 95 }
98 96
99 } // namespace content 97 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698