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

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

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments; plumb scrollbar color via flag. Created 7 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 | Annotate | Revision Log
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/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll); 55 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll);
56 parsed_command_line->AppendSwitch( 56 parsed_command_line->AppendSwitch(
57 switches::kEnableAcceleratedScrollableFrames); 57 switches::kEnableAcceleratedScrollableFrames);
58 parsed_command_line->AppendSwitch( 58 parsed_command_line->AppendSwitch(
59 switches::kEnableCompositedScrollingForFrames); 59 switches::kEnableCompositedScrollingForFrames);
60 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); 60 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling);
61 61
62 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); 62 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
63 parsed_command_line->AppendSwitch(switches::kEnablePinch); 63 parsed_command_line->AppendSwitch(switches::kEnablePinch);
64 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); 64 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications);
65 parsed_command_line->AppendSwitch(cc::switches::kEnableOverlayScrollbars);
aelias_OOO_until_Jul13 2013/08/15 21:22:32 Please add the solid-color flag with 0x80808080 he
wjmaclean 2013/08/16 13:34:16 Done.
65 66
66 // Run the GPU service as a thread in the browser instead of as a 67 // Run the GPU service as a thread in the browser instead of as a
67 // standalone process. 68 // standalone process.
68 parsed_command_line->AppendSwitch(switches::kInProcessGPU); 69 parsed_command_line->AppendSwitch(switches::kInProcessGPU);
69 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); 70 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache);
70 71
71 // Always use fixed layout and viewport tag. 72 // Always use fixed layout and viewport tag.
72 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); 73 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout);
73 parsed_command_line->AppendSwitch(switches::kEnableViewport); 74 parsed_command_line->AppendSwitch(switches::kEnableViewport);
74 75
75 // Disable <canvas> path antialiasing. 76 // Disable <canvas> path antialiasing.
76 parsed_command_line->AppendSwitch(switches::kDisable2dCanvasAntialiasing); 77 parsed_command_line->AppendSwitch(switches::kDisable2dCanvasAntialiasing);
77 78
78 // Disable anti-aliasing. 79 // Disable anti-aliasing.
79 parsed_command_line->AppendSwitch( 80 parsed_command_line->AppendSwitch(
80 cc::switches::kDisableCompositedAntialiasing); 81 cc::switches::kDisableCompositedAntialiasing);
81 82
82 if (!plugin_descriptor.empty()) { 83 if (!plugin_descriptor.empty()) {
83 parsed_command_line->AppendSwitchNative( 84 parsed_command_line->AppendSwitchNative(
84 switches::kRegisterPepperPlugins, plugin_descriptor); 85 switches::kRegisterPepperPlugins, plugin_descriptor);
85 } 86 }
86 } 87 }
87 88
88 } // namespace content 89 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698