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

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: Incorporate review feedback 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
« no previous file with comments | « 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/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_
« no previous file with comments | « cc/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698