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

Side by Side Diff: cc/util.h

Issue 12221005: Add flag to disable impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing line Created 7 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 | « cc/switches.cc ('k') | cc/util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/switches.cc ('k') | cc/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698