Index: src/codec/SkCodecImageGenerator.h |
diff --git a/src/codec/SkCodecImageGenerator.h b/src/codec/SkCodecImageGenerator.h |
index d2c74ab48295a171f2358a1130be9d37f9646707..6d34223110722478c1aa8a9407d93a4cb3799354 100644 |
--- a/src/codec/SkCodecImageGenerator.h |
+++ b/src/codec/SkCodecImageGenerator.h |
@@ -26,8 +26,9 @@ protected: |
bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], |
int* ctableCount) override; |
- bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
- SkYUVColorSpace* colorSpace) override; |
+ bool onQueryYUV8(SkYUVSizeInfo*, SkYUVColorSpace*) const override; |
+ |
+ bool onGetYUV8Planes(const SkYUVSizeInfo&, void* planes[3]) override; |
private: |
/* |
@@ -39,11 +40,5 @@ private: |
SkAutoTDelete<SkCodec> fCodec; |
SkAutoTUnref<SkData> fData; |
- // FIXME: These fields are necessary only until we change the API of SkImageGenerator |
- // to match SkCodec. Once the API is changed, they should be removed. |
- int fYWidth; |
- int fUWidth; |
- int fVWidth; |
- |
typedef SkImageGenerator INHERITED; |
}; |