diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-31 09:17:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-01 16:24:48 +0000 |
commit | bdda0ba1550fa31b7121a3b03bf14cda3ce17108 (patch) | |
tree | 0e6025fd7b35a0d5d3e75889af0850c1eed1a561 /src/gpu/GrBufferAllocPool.cpp | |
parent | 022cfa258df280d914cfff4dc1466a3fa909ce9c (diff) |
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>
Diffstat (limited to 'src/gpu/GrBufferAllocPool.cpp')
-rw-r--r-- | src/gpu/GrBufferAllocPool.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp index 53e0d8cc7a..13ae404d3d 100644 --- a/src/gpu/GrBufferAllocPool.cpp +++ b/src/gpu/GrBufferAllocPool.cpp @@ -38,10 +38,8 @@ do { (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; |