commit | bdda0ba1550fa31b7121a3b03bf14cda3ce17108 | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Thu Aug 31 09:17:43 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Sep 01 16:24:48 2017 +0000 |
tree | 0e6025fd7b35a0d5d3e75889af0850c1eed1a561 | |
parent | 022cfa258df280d914cfff4dc1466a3fa909ce9c [diff] [blame] |
Cosmetic changes to GrDrawOpAtlas It looks like we won't be going in the direction of: https://skia-review.googlesource.com/c/skia/+/35962 (Allow GrDrawOpAtlas to grow & shrink) Pull out what is worth keeping. TBR=bsalomon@google.com Change-Id: Ia14c3c621e7b1d2d7f303a455a3e4d9660af5f6e Reviewed-on: https://skia-review.googlesource.com/41362 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp index 53e0d8c..13ae404 100644 --- a/src/gpu/GrBufferAllocPool.cpp +++ b/src/gpu/GrBufferAllocPool.cpp
@@ -38,10 +38,8 @@ (block).fBuffer->unmap(); \ } while (false) -GrBufferAllocPool::GrBufferAllocPool(GrGpu* gpu, - GrBufferType bufferType, - size_t blockSize) - : fBlocks(8) { +GrBufferAllocPool::GrBufferAllocPool(GrGpu* gpu, GrBufferType bufferType, size_t blockSize) + : fBlocks(8) { fGpu = SkRef(gpu); fCpuData = nullptr;