Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index a3848c77e01de508f9c22a96e8c4b2d0f69d8454..963f5e79ab8cfa9fe65d449a480dc514921edbd7 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -178,12 +178,11 @@ public: |
PixelRef_GrYUVProvider(SkPixelRef* pr) : fPR(pr) {} |
uint32_t onGetID() override { return fPR->getGenerationID(); } |
- bool onGetYUVSizes(SkISize sizes[3]) override { |
- return fPR->getYUV8Planes(sizes, nullptr, nullptr, nullptr); |
+ bool onQueryYUV8(SkYUVSizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const override { |
+ return fPR->queryYUV8(sizeInfo, colorSpace); |
} |
- bool onGetYUVPlanes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
- SkYUVColorSpace* space) override { |
- return fPR->getYUV8Planes(sizes, planes, rowBytes, space); |
+ bool onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo, void* planes[3]) override { |
+ return fPR->getYUV8Planes(sizeInfo, planes); |
} |
}; |