Index: src/core/SkImageCacherator.cpp |
diff --git a/src/core/SkImageCacherator.cpp b/src/core/SkImageCacherator.cpp |
index ea4d4c2bab1f17137d3436c42cf7f5bcfa3a2891..e9b7f6a82a60c378bcbc2ccbc124826a055333d7 100644 |
--- a/src/core/SkImageCacherator.cpp |
+++ b/src/core/SkImageCacherator.cpp |
@@ -213,12 +213,11 @@ public: |
Generator_GrYUVProvider(SkImageGenerator* gen) : fGen(gen) {} |
uint32_t onGetID() override { return fGen->uniqueID(); } |
- bool onGetYUVSizes(SkISize sizes[3]) override { |
- return fGen->getYUV8Planes(sizes, nullptr, nullptr, nullptr); |
+ bool onQueryYUV8(SkYUVSizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const override { |
+ return fGen->queryYUV8(sizeInfo, colorSpace); |
} |
- bool onGetYUVPlanes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
- SkYUVColorSpace* space) override { |
- return fGen->getYUV8Planes(sizes, planes, rowBytes, space); |
+ bool onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo, void* planes[3]) override { |
+ return fGen->getYUV8Planes(sizeInfo, planes); |
} |
}; |