Index: src/gpu/GrResourceProvider.cpp |
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp |
index 4c60f079a748a544275e61b2240bef1d64d88d18..238276d799473af52b8e016d2e4f093473f4575c 100644 |
--- a/src/gpu/GrResourceProvider.cpp |
+++ b/src/gpu/GrResourceProvider.cpp |
@@ -32,7 +32,7 @@ |
size_t bufferSize = patternSize * reps * sizeof(uint16_t); |
// This is typically used in GrBatchs, so we assume kNoPendingIO. |
- GrBuffer* buffer = this->createBuffer(bufferSize, kIndex_GrBufferType, kStatic_GrAccessPattern, |
+ GrBuffer* buffer = this->createBuffer(kIndex_GrBufferType, bufferSize, kStatic_GrAccessPattern, |
kNoPendingIO_Flag); |
if (!buffer) { |
return nullptr; |
@@ -88,7 +88,7 @@ |
return this->gpu()->pathRendering()->createGlyphs(tf, desc, stroke); |
} |
-GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedType, |
+GrBuffer* GrResourceProvider::createBuffer(GrBufferType type, size_t size, |
GrAccessPattern accessPattern, uint32_t flags) { |
if (this->isAbandoned()) { |
return nullptr; |
@@ -100,7 +100,7 @@ |
size = SkTMax(MIN_SIZE, GrNextPow2(SkToUInt(size))); |
GrScratchKey key; |
- GrBuffer::ComputeScratchKeyForDynamicBuffer(size, intendedType, &key); |
+ GrBuffer::ComputeScratchKeyForDynamicBuffer(type, size, &key); |
uint32_t scratchFlags = 0; |
if (flags & kNoPendingIO_Flag) { |
scratchFlags = GrResourceCache::kRequireNoPendingIO_ScratchFlag; |
@@ -112,7 +112,7 @@ |
return static_cast<GrBuffer*>(resource); |
} |
} |
- return this->gpu()->createBuffer(size, intendedType, accessPattern); |
+ return this->gpu()->createBuffer(type, size, accessPattern); |
} |
GrBatchAtlas* GrResourceProvider::createAtlas(GrPixelConfig config, |