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. |
| 95 // Requires --enable-compositor-frame-message. |
| 96 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
| 97 |
93 bool IsImplSidePaintingEnabled() { | 98 bool IsImplSidePaintingEnabled() { |
94 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 99 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
95 | 100 |
96 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) | 101 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) |
97 return false; | 102 return false; |
98 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) | 103 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) |
99 return true; | 104 return true; |
100 | 105 |
101 #if defined(OS_ANDROID) | 106 #if defined(OS_ANDROID) |
102 return true; | 107 return true; |
103 #else | 108 #else |
104 return false; | 109 return false; |
105 #endif | 110 #endif |
106 } | 111 } |
107 | 112 |
108 } // namespace switches | 113 } // namespace switches |
109 } // namespace cc | 114 } // namespace cc |
OLD | NEW |