| Index: src/gpu/GrGpu.cpp
|
| diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
|
| index bc11b4b9c6578b4f571b04c2897cbb4e2200fd3a..187dbd05a24dbbb2b6bb5551a9ae760e4033ceae 100644
|
| --- a/src/gpu/GrGpu.cpp
|
| +++ b/src/gpu/GrGpu.cpp
|
| @@ -51,6 +51,8 @@ GrGpu::GrGpu(GrContext* context)
|
|
|
| GrGpu::~GrGpu() {}
|
|
|
| +void GrGpu::initGpuResources() {}
|
| +
|
| void GrGpu::disconnect(DisconnectType) {}
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -235,9 +237,10 @@ GrRenderTarget* GrGpu::wrapBackendTextureAsRenderTarget(const GrBackendTextureDe
|
| return this->onWrapBackendTextureAsRenderTarget(desc);
|
| }
|
|
|
| -GrBuffer* GrGpu::createBuffer(GrBufferType type, size_t size, GrAccessPattern accessPattern) {
|
| +GrBuffer* GrGpu::createBuffer(size_t size, GrBufferType intendedType,
|
| + GrAccessPattern accessPattern) {
|
| this->handleDirtyContext();
|
| - GrBuffer* buffer = this->onCreateBuffer(type, size, accessPattern);
|
| + GrBuffer* buffer = this->onCreateBuffer(size, intendedType, accessPattern);
|
| if (!this->caps()->reuseScratchBuffers()) {
|
| buffer->resourcePriv().removeScratchKey();
|
| }
|
|
|