aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMathPriv.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-01 13:56:52 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-01 20:30:54 +0000
commit1bfece8556cc03b6aa904b2445d2332136bce037 (patch)
tree94ac7527f390069812bc4c35fdceaffb034097cc /src/core/SkMathPriv.h
parent8692b4a5acffe983c67831146abc6122ee1d4c0b (diff)
Rm int flavor of GrNextPow2 in favor of uint32_t flavor
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=18384 Change-Id: I8f62c5ea6146626916389429ac4f2f80c57a7d72 Reviewed-on: https://skia-review.googlesource.com/18384 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkMathPriv.h')
-rw-r--r--src/core/SkMathPriv.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkMathPriv.h b/src/core/SkMathPriv.h
index 5ef0cb25e4..ddb231507f 100644
--- a/src/core/SkMathPriv.h
+++ b/src/core/SkMathPriv.h
@@ -200,8 +200,4 @@ static inline size_t GrNextSizePow2(size_t n) {
return n + 1;
}
-static inline int GrNextPow2(int n) {
- SkASSERT(n >= 0); // this impl only works for non-neg.
- return n ? (1 << (32 - SkCLZ(n - 1))) : 1;
-}
#endif