aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Gpu.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-03-15 12:16:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-15 19:41:26 +0000
commit6a426c1d72aba0e37794fb8043cb71645eed4110 (patch)
tree73ba6627156ddb9e12f482597d08df20beade200 /src/image/SkImage_Gpu.h
parent1a114377898ae10c943695594223e447bee5aeb0 (diff)
Cleanup SkImage YUV texture factories.
Remove unused GrBackendObject variants. Add versions without redundant size param. Make this work with GrBackendTextures that weren't created with a GrPixelConfig. Change-Id: Ic1bbf5f2817cebab938b4f31000126a6ab5c44d5 Reviewed-on: https://skia-review.googlesource.com/114460 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/image/SkImage_Gpu.h')
-rw-r--r--src/image/SkImage_Gpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h
index 3c536a4013..e1fd35a766 100644
--- a/src/image/SkImage_Gpu.h
+++ b/src/image/SkImage_Gpu.h
@@ -114,6 +114,12 @@ public:
TextureReleaseProc textureReleaseProc,
TextureContext textureContext);
+ /** Implementation of MakeFromYUVTexturesCopy and MakeFromNV12TexturesCopy */
+ static sk_sp<SkImage> MakeFromYUVTexturesCopyImpl(
+ GrContext* ctx, SkYUVColorSpace colorSpace, bool nv12,
+ const GrBackendTexture yuvBackendTextures[], GrSurfaceOrigin origin,
+ sk_sp<SkColorSpace> imageColorSpace);
+
bool onIsValid(GrContext*) const override;
private: