Chromium Code Reviews| 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 #include "cc/gl_compositor_frame.h" |
| 6 #define CC_UTIL_H_ | |
| 7 | 6 |
| 8 namespace cc { | 7 namespace cc { |
| 9 | 8 |
| 10 template<typename T> | 9 GLCompositorFrame::GLCompositorFrame() |
| 11 T RoundUp(T n, T mul) | 10 : sync_point(0) { |
|
piman
2012/12/14 22:02:22
nit: indent = 4
aelias_OOO_until_Jul13
2012/12/15 00:06:17
Done.
| |
| 12 { | 11 type = GL; |
| 13 return ((n + mul - 1) / mul) * mul; | |
| 14 } | 12 } |
| 15 | 13 |
| 14 GLCompositorFrame::~GLCompositorFrame() {} | |
| 15 | |
| 16 } // namespace cc | 16 } // namespace cc |
| 17 | |
| 18 #endif // CC_UTIL_H_ | |
| OLD | NEW |