diff options
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/GrSurfaceProxy.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h index 4e23c9ee47..c016cfe798 100644 --- a/include/private/GrSurfaceProxy.h +++ b/include/private/GrSurfaceProxy.h @@ -180,6 +180,20 @@ public: const GrSurfaceDesc&, SkBackingFit, SkBudgeted, uint32_t flags = 0); + /** + * Creates a proxy that will be mipmapped. + * + * @param desc Description of the texture properties. + * @param budgeted Does the texture count against the resource cache budget? + * @param texels A contiguous array of mipmap levels + * @param mipLevelCount The amount of elements in the texels array + */ + static sk_sp<GrTextureProxy> MakeDeferredMipMap(GrResourceProvider*, + const GrSurfaceDesc& desc, SkBudgeted budgeted, + const GrMipLevel* texels, int mipLevelCount, + SkDestinationSurfaceColorMode mipColorMode = + SkDestinationSurfaceColorMode::kLegacy); + // TODO: need to refine ownership semantics of 'srcData' if we're in completely // deferred mode static sk_sp<GrTextureProxy> MakeDeferred(GrResourceProvider*, |