aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefromyuvtextures.cpp
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 /gm/imagefromyuvtextures.cpp
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 'gm/imagefromyuvtextures.cpp')
-rw-r--r--gm/imagefromyuvtextures.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp
index 526350c734..4db805d60e 100644
--- a/gm/imagefromyuvtextures.cpp
+++ b/gm/imagefromyuvtextures.cpp
@@ -137,11 +137,6 @@ protected:
constexpr SkScalar kPad = 10.f;
- SkISize sizes[] = {
- { fYUVBmps[0].width(), fYUVBmps[0].height()},
- { fYUVBmps[1].width(), fYUVBmps[1].height()},
- { fYUVBmps[2].width(), fYUVBmps[2].height()},
- };
SkTArray<sk_sp<SkImage>> images;
images.push_back(fRGBImage);
for (int space = kJPEG_SkYUVColorSpace; space <= kLastEnum_SkYUVColorSpace; ++space) {
@@ -149,7 +144,7 @@ protected:
this->createYUVTextures(context, yuvTextures);
images.push_back(SkImage::MakeFromYUVTexturesCopy(context,
static_cast<SkYUVColorSpace>(space),
- yuvTextures, sizes,
+ yuvTextures,
kTopLeft_GrSurfaceOrigin));
this->deleteYUVTextures(context, yuvTextures);
}