added MakeFromYUVATextures to docs
added MakeFromYUVATextures to docs
TBR=jvanverth@google.com
NOTRY=true
Docs-Preview: https://skia.org/?cl=166623
Bug: skia:
Change-Id: Iec7769e289f91432e2ab1e550376947b897ff186
Reviewed-on: https://skia-review.googlesource.com/c/166623
Commit-Queue: Cary Clark <caryclark@skia.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
diff --git a/docs/SkImage_Reference.bmh b/docs/SkImage_Reference.bmh
index 9285fd4..61d9835 100644
--- a/docs/SkImage_Reference.bmh
+++ b/docs/SkImage_Reference.bmh
@@ -648,10 +648,46 @@
#NoExample
##
-#SeeAlso MakeFromYUVATexturesCopyWithExternalBackend
+#SeeAlso MakeFromYUVATexturesCopyWithExternalBackend MakeFromYUVATextures
#Method ##
+#Method static sk_sp<SkImage> MakeFromYUVATextures(GrContext* context,
+ SkYUVColorSpace yuvColorSpace,
+ const GrBackendTexture yuvaTextures[],
+ const SkYUVAIndex yuvaIndices[4],
+ SkISize imageSize,
+ GrSurfaceOrigin imageOrigin,
+ sk_sp<SkColorSpace> imageColorSpace = nullptr);
+
+#In Constructor
+#Line # creates Image from YUV_ColorSpace data ##
+
+Creates an SkImage by storing the specified YUVA planes into an image, to be rendered
+via multitexturing.
+
+#Param context GPU context ##
+#Param yuvColorSpace one of: kJPEG_SkYUVColorSpace, kRec601_SkYUVColorSpace,
+ kRec709_SkYUVColorSpace
+##
+#Param yuvaTextures array of YUVA textures ##
+#Param yuvaIndices array indicating yuvaTextures element and channel
+ that map to Y, U, V, and A
+##
+#Param imageSize size of the resulting image ##
+#Param imageOrigin one of: kBottomLeft_GrSurfaceOrigin, kTopLeft_GrSurfaceOrigin ##
+#Param imageColorSpace range of colors of the resulting image; may be nullptr ##
+
+#Return created SkImage, or nullptr ##
+
+#NoExample
+##
+
+#SeeAlso MakeFromYUVATexturesCopy MakeFromYUVATexturesCopyWithExternalBackend
+
+#Method ##
+
+
# ------------------------------------------------------------------------------
#Method static sk_sp<SkImage> MakeFromYUVATexturesCopyWithExternalBackend(
@@ -694,7 +730,7 @@
#NoExample
##
-#SeeAlso MakeFromYUVATexturesCopy
+#SeeAlso MakeFromYUVATexturesCopy MakeFromYUVATextures
#Method ##