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

Unified Diff: cc/util.h

Issue 11470024: Don't spam the GPU process with memory usage stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move RoundUp macro to cc/util.h Created 8 years 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 side-by-side diff with in-line comments
Download patch
« cc/layer_tree_host_impl.cc ('K') | « cc/thread_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/util.h
diff --git a/cc/util.h b/cc/util.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb8e7bd99df885142c525ba73f3a4dfb2b75366e
--- /dev/null
+++ b/cc/util.h
@@ -0,0 +1,18 @@
+// Copyright 2011 The Chromium Authors. All rights reserved.
jamesr 2012/12/07 23:19:12 2012
ccameron 2012/12/08 00:21:15 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_UTIL_H_
+#define CC_UTIL_H_
+
+namespace cc {
+
+template<typename T>
+T RoundUp(T n, T mul)
+{
+ return ((n + mul - 1) / mul) * mul;
+}
+
+} // namespace cc
+
+#endif // CC_UTIL_H_
« cc/layer_tree_host_impl.cc ('K') | « cc/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698