Chromium Code Reviews| Index: include/gpu/GrTypes.h |
| diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
| index 34f4e2827d9b818af8059570cce78978658a329f..519ad0fbca14e84ebd50d0021affb1aaa679b8b7 100644 |
| --- a/include/gpu/GrTypes.h |
| +++ b/include/gpu/GrTypes.h |
| @@ -151,13 +151,6 @@ static inline size_t GrSizeAlignDown(size_t x, uint32_t alignment) { |
| /////////////////////////////////////////////////////////////////////////////// |
| /** |
| - * Return true if n is a power of 2 |
| - */ |
| -static inline bool GrIsPow2(unsigned n) { |
| - return n && 0 == (n & (n - 1)); |
|
scroggo
2014/06/09 14:40:56
Not sure whether it makes a difference to any of t
|
| -} |
| - |
| -/** |
| * Return the next power of 2 >= n. |
| */ |
| static inline uint32_t GrNextPow2(uint32_t n) { |