From 7d4d6b816c285923e66030046d176cd60faf9ca8 Mon Sep 17 00:00:00 2001 From: skia-bookmaker Date: Thu, 14 Jun 2018 06:41:13 +0000 Subject: Update markdown files Automatic commit by the Housekeeper-Nightly-Bookmaker bot. TBR=rmistry@google.com NO_MERGE_BUILDS Change-Id: If284d35923308d05003694d0eccc84b945d8641c Reviewed-on: https://skia-review.googlesource.com/134762 Commit-Queue: Reviewed-by: --- site/user/api/SkImage_Reference.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'site') diff --git a/site/user/api/SkImage_Reference.md b/site/user/api/SkImage_Reference.md index d1763ea1a7..7f3f0054c3 100644 --- a/site/user/api/SkImage_Reference.md +++ b/site/user/api/SkImage_Reference.md @@ -2318,12 +2318,15 @@ partial or full Image, or nullptr ## makeTextureImage
-sk sp<SkImage> makeTextureImage(GrContext* context, SkColorSpace* dstColorSpace) const
+sk sp<SkImage> makeTextureImage(GrContext* context, SkColorSpace* dstColorSpace,
+                                 mipMapped = GrMipMapped::kNo) const
 
Returns Image backed by GPU Texture associated with context. Returned Image is -compatible with Surface created with dstColorSpace. Returns original -Image if context and dstColorSpace match. +compatible with Surface created with dstColorSpace. The returned Image will also +support the request status. In other words if mipMapped is GrMipMapped::kYes, +then the backing texture will have Mip_Map levels allocated. Returns original Image if context +and dstColorSpace match and mipMapped is compatible with the backing GPU Texture. Returns nullptr if context is nullptr, or if Image was created with another GrContext. @@ -2336,6 +2339,9 @@ Returns nullptr if context is nu dstColorSpace range of colors of matching Surface on GPU + mipMapped + whether the returned SkImage's texture must have allocated Mip_Map levels + ### Return Value -- cgit v1.2.3