| Index: src/image/SkImage_Gpu.cpp
|
| diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
|
| index 06ec224a2a9cbc23fa02b83288128a4252329b26..a70acc04759982b2e937fee7225fd9e4270fc0e3 100644
|
| --- a/src/image/SkImage_Gpu.cpp
|
| +++ b/src/image/SkImage_Gpu.cpp
|
| @@ -485,11 +485,7 @@ size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy& prox
|
| ctSize = SkAlign8(pixmap.ctable()->count() * 4);
|
| }
|
| } else {
|
| - // Here we're just using presence of data to know whether there is a codec behind the image.
|
| - // In the future we will access the cacherator and get the exact data that we want to (e.g.
|
| - // yuv planes) upload.
|
| - sk_sp<SkData> data(this->refEncoded());
|
| - if (!data && !this->peekPixels(nullptr)) {
|
| + if (!as_IB(this)->peekCacherator() && !this->peekPixels(nullptr)) {
|
| return 0;
|
| }
|
| info = SkImageInfo::MakeN32(scaledSize.width(), scaledSize.height(), this->alphaType());
|
|
|