| Index: include/gpu/GrContext.h
|
| diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
|
| index 7716f9ae7c71c1fcea09d88772adfd578e5ab262..2b306c0158774f655aa4c147a8b8ddb9e580e144 100644
|
| --- a/include/gpu/GrContext.h
|
| +++ b/include/gpu/GrContext.h
|
| @@ -131,11 +131,14 @@ public:
|
| * @param srcData Pointer to the pixel values.
|
| * @param rowBytes The number of bytes between rows of the texture. Zero
|
| * implies tightly packed rows.
|
| + * @param cacheKey (optional) If non-NULL, we'll write the cache key we used to cacheKey.
|
| */
|
| GrTexture* createTexture(const GrTextureParams* params,
|
| const GrTextureDesc& desc,
|
| const GrCacheID& cacheID,
|
| - void* srcData, size_t rowBytes);
|
| + void* srcData,
|
| + size_t rowBytes,
|
| + GrResourceKey* cacheKey = NULL);
|
|
|
| /**
|
| * Search for an entry based on key and dimensions. If found, ref it and return it. The return
|
|
|