| Index: src/gpu/GrResourceProvider.h
|
| diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h
|
| index 783c7c743b9bea33abca7b7b295ff0ca38ee47d7..3dfc9ba863334299c5ea1c7142a6ea8d27be9e9e 100644
|
| --- a/src/gpu/GrResourceProvider.h
|
| +++ b/src/gpu/GrResourceProvider.h
|
| @@ -147,6 +147,15 @@ public:
|
|
|
| const GrCaps* caps() { return this->gpu()->caps(); }
|
|
|
| + /**
|
| + * Wraps an existing texture with a GrRenderTarget object. This is useful when the provided
|
| + * texture has a format that cannot be textured from by Skia, but we want to raster to it.
|
| + *
|
| + * @return GrRenderTarget object or NULL on failure.
|
| + */
|
| + GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc& desc,
|
| + GrWrapOwnership = kBorrow_GrWrapOwnership);
|
| +
|
| private:
|
| const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern,
|
| int patternSize,
|
|
|