Index: src/gpu/GrResourceProvider.h |
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h |
index 5beb70a3d8773d9dc783f67070b7c7d777846900..9701bf1784702a8772e6420edce46d52e5a18dd7 100644 |
--- a/src/gpu/GrResourceProvider.h |
+++ b/src/gpu/GrResourceProvider.h |
@@ -110,10 +110,12 @@ public: |
* @param intendedType hint to the graphics subsystem about what the buffer will be used for. |
* @param GrAccessPattern hint to the graphics subsystem about how the data will be accessed. |
* @param flags see Flags enum. |
+ * @param data optional data with which to initialize the buffer. |
* |
* @return the buffer if successful, otherwise nullptr. |
*/ |
- GrBuffer* createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, uint32_t flags); |
+ GrBuffer* createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, uint32_t flags, |
+ const void* data = nullptr); |
GrTexture* createApproxTexture(const GrSurfaceDesc& desc, uint32_t flags) { |
SkASSERT(0 == flags || kNoPendingIO_Flag == flags); |