Index: cc/util.h |
diff --git a/cc/compositor_frame.cc b/cc/util.h |
similarity index 57% |
copy from cc/compositor_frame.cc |
copy to cc/util.h |
index da665395eb4d5def198a733d90bc94f733f4a40a..6da3a697c4ac3396602903d7ac75d85fad4e7abd 100644 |
--- a/cc/compositor_frame.cc |
+++ b/cc/util.h |
@@ -2,12 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "cc/compositor_frame.h" |
+#ifndef CC_UTIL_H_ |
+#define CC_UTIL_H_ |
namespace cc { |
-CompositorFrame::CompositorFrame() {} |
- |
-CompositorFrame::~CompositorFrame() {} |
+template<typename T> |
+T RoundUp(T n, T mul) |
+{ |
+ return ((n + mul - 1) / mul) * mul; |
+} |
} // namespace cc |
+ |
+#endif // CC_UTIL_H_ |