| Index: src/gpu/GrGpu.h
|
| diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
|
| index b3251dc14fa6bc2ca03a37f89d7cdda6ff16b56b..d0a290fd229f4d085bc3f754247be0965417e253 100644
|
| --- a/src/gpu/GrGpu.h
|
| +++ b/src/gpu/GrGpu.h
|
| @@ -135,9 +135,13 @@ public:
|
| /**
|
| * Creates a buffer.
|
| *
|
| + * @param size size of buffer to create.
|
| + * @param intendedType hint to the graphics subsystem about what the buffer will be used for.
|
| + * @param accessPattern hint to the graphics subsystem about how the data will be accessed.
|
| + *
|
| * @return the buffer if successful, otherwise nullptr.
|
| */
|
| - GrBuffer* createBuffer(GrBufferType, size_t size, GrAccessPattern);
|
| + GrBuffer* createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern accessPattern);
|
|
|
| /**
|
| * Resolves MSAA.
|
| @@ -533,7 +537,7 @@ private:
|
| virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
|
| GrWrapOwnership) = 0;
|
| virtual GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&) = 0;
|
| - virtual GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) = 0;
|
| + virtual GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern) = 0;
|
|
|
| // overridden by backend-specific derived class to perform the clear.
|
| virtual void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) = 0;
|
|
|