OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CC_UTIL_H_ | 5 #ifndef CC_UTIL_H_ |
6 #define CC_UTIL_H_ | 6 #define CC_UTIL_H_ |
7 | 7 |
8 #include "base/command_line.h" | |
9 | |
8 namespace cc { | 10 namespace cc { |
9 | 11 |
10 template<typename T> | 12 template<typename T> |
11 T RoundUp(T n, T mul) | 13 T RoundUp(T n, T mul) |
12 { | 14 { |
13 return ((n + mul - 1) / mul) * mul; | 15 return ((n + mul - 1) / mul) * mul; |
14 } | 16 } |
15 | 17 |
18 // Returns whether or not impl-side painting is enabled. | |
19 bool IsImplSidePaintingEnabled(const CommandLine* cl); | |
danakj
2013/02/05 02:23:57
Please don't read command line flags from in cc/.
| |
20 | |
16 } // namespace cc | 21 } // namespace cc |
17 | 22 |
18 #endif // CC_UTIL_H_ | 23 #endif // CC_UTIL_H_ |
OLD | NEW |