aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar Weiliang Chen <weiliangc@chromium.org>2018-05-30 15:15:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-03 21:30:27 +0000
commit3e95e578c255e8b854d7997a47b74b1b03f1346f (patch)
tree9bc84a130d3a38b54ccb585e64821bfad5cc7731 /src/image
parentc940f5d5ff81602b5269373a4b15dbedd09de541 (diff)
Use TextureProxy size directly in GrYUVToRGBEffect FragmentProcessor
Instead of take extra input to indicate size for texture proxies of different planes, directly use texture proxy's size. Bug: skia:7903 Change-Id: I5d6c859510f7390948c6dcfbdd17343faa786aca Reviewed-on: https://skia-review.googlesource.com/130964 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Weiliang Chen <weiliangc@chromium.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkImage_Gpu.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
index 7b24858c2f..359782f745 100644
--- a/src/image/SkImage_Gpu.cpp
+++ b/src/image/SkImage_Gpu.cpp
@@ -439,14 +439,10 @@ sk_sp<SkImage> SkImage_Gpu::MakeFromYUVATexturesCopyImpl(GrContext* ctx,
GrPaint paint;
paint.setPorterDuffXPFactory(SkBlendMode::kSrc);
- // TODO: Move the sizes into GrYUVtoRGBEffect since this can just be done there.
- SkISize sizes[] = {{yProxy->width(), yProxy->height()},
- {uProxy->width(), uProxy->height()},
- {vProxy->width(), vProxy->height()}};
// TODO: Modify the fragment processor to sample from different channel instead of taking nv12
// bool.
paint.addColorFragmentProcessor(
- GrYUVtoRGBEffect::Make(yProxy, uProxy, vProxy, sizes, colorSpace, nv12));
+ GrYUVtoRGBEffect::Make(yProxy, uProxy, vProxy, colorSpace, nv12));
const SkRect rect = SkRect::MakeIWH(width, height);