OLD | NEW |
---|---|
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 "cc/switches.h" | 5 #include "cc/switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 namespace switches { | 10 namespace switches { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 // complete, such as --slow-down-raster-scale-factor=25. | 83 // complete, such as --slow-down-raster-scale-factor=25. |
84 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; | 84 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
85 | 85 |
86 // Schedule rasterization jobs according to their estimated processing cost. | 86 // Schedule rasterization jobs according to their estimated processing cost. |
87 const char kUseCheapnessEstimator[] = "use-cheapness-estimator"; | 87 const char kUseCheapnessEstimator[] = "use-cheapness-estimator"; |
88 | 88 |
89 // The scale factor for low resolution tile contents. | 89 // The scale factor for low resolution tile contents. |
90 const char kLowResolutionContentsScaleFactor[] = | 90 const char kLowResolutionContentsScaleFactor[] = |
91 "low-resolution-contents-scale-factor"; | 91 "low-resolution-contents-scale-factor"; |
92 | 92 |
93 // Causes the compositor to render to textures which are then sent to the parent | |
94 // through the texture mailbox mechanism. Requires kEnableCompositorFrameMessage . | |
Sami
2013/02/28 12:46:58
Nit: say --enable-compositor-frame-message instead
no sievers
2013/02/28 18:43:40
Done.
| |
95 const char kCompositeToMailbox[] = "composite-to-mailbox"; | |
96 | |
93 bool IsImplSidePaintingEnabled() { | 97 bool IsImplSidePaintingEnabled() { |
94 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 98 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
95 | 99 |
96 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) | 100 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) |
97 return false; | 101 return false; |
98 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) | 102 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) |
99 return true; | 103 return true; |
100 | 104 |
101 #if defined(OS_ANDROID) | 105 #if defined(OS_ANDROID) |
102 return true; | 106 return true; |
103 #else | 107 #else |
104 return false; | 108 return false; |
105 #endif | 109 #endif |
106 } | 110 } |
107 | 111 |
108 } // namespace switches | 112 } // namespace switches |
109 } // namespace cc | 113 } // namespace cc |
OLD | NEW |