diff options
author | 2016-10-28 12:15:03 -0400 | |
---|---|---|
committer | 2016-10-31 18:27:01 +0000 | |
commit | 9e38047c56f8dff4440fe00002264be692440902 (patch) | |
tree | 828f65cd030f410a73707352aca6769184a855fa /src/gpu/GrResourceProvider.cpp | |
parent | 0186661e85737ac2f4805f876c8d2d4157126f68 (diff) |
Add GrNextSizePow2
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4069
BUG=skia:5882
Change-Id: Ib9af5918716be594c3c07239eca179dbb4eb8566
Reviewed-on: https://skia-review.googlesource.com/4069
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.cpp')
-rw-r--r-- | src/gpu/GrResourceProvider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp index 9739b05ad7..a6958e5440 100644 --- a/src/gpu/GrResourceProvider.cpp +++ b/src/gpu/GrResourceProvider.cpp @@ -109,8 +109,8 @@ GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedTyp } // bin by pow2 with a reasonable min - static const uint32_t MIN_SIZE = 1 << 12; - size_t allocSize = SkTMax(MIN_SIZE, GrNextPow2(SkToUInt(size))); + static const size_t MIN_SIZE = 1 << 12; + size_t allocSize = SkTMax(MIN_SIZE, GrNextSizePow2(size)); GrScratchKey key; GrBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); |