aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-29 11:37:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-29 11:37:25 -0700
commit993a4216a6014b9de8f4d8120360c94550dc6761 (patch)
tree75e4863a6fa83d35c519a3103a9d2c94520dbd1e /include
parent4061b1262e931be19e1176cbd0e93b8c268eb131 (diff)
SkImage::NewFromYUVTexturesCopy
Diffstat (limited to 'include')
-rw-r--r--include/core/SkImage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 7128f6ea3a..33ae448072 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -82,6 +82,16 @@ public:
static SkImage* NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&,
SkAlphaType = kPremul_SkAlphaType);
+ /**
+ * Create a new image by copying the pixels from the specified y, u, v textures. The data
+ * from the textures is immediately ingested into the image and the textures can be modified or
+ * deleted after the function returns. The image will have the dimensions of the y texture.
+ */
+ static SkImage* NewFromYUVTexturesCopy(GrContext*, SkYUVColorSpace,
+ const GrBackendObject yuvTextureHandles[3],
+ const SkISize yuvSizes[3],
+ GrSurfaceOrigin);
+
int width() const { return fWidth; }
int height() const { return fHeight; }
uint32_t uniqueID() const { return fUniqueID; }