Index: src/codec/SkCodecImageGenerator.h |
diff --git a/src/codec/SkCodecImageGenerator.h b/src/codec/SkCodecImageGenerator.h |
index 6d34223110722478c1aa8a9407d93a4cb3799354..d2c74ab48295a171f2358a1130be9d37f9646707 100644 |
--- a/src/codec/SkCodecImageGenerator.h |
+++ b/src/codec/SkCodecImageGenerator.h |
@@ -26,9 +26,8 @@ |
bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], |
int* ctableCount) override; |
- bool onQueryYUV8(SkYUVSizeInfo*, SkYUVColorSpace*) const override; |
- |
- bool onGetYUV8Planes(const SkYUVSizeInfo&, void* planes[3]) override; |
+ bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
+ SkYUVColorSpace* colorSpace) override; |
private: |
/* |
@@ -40,5 +39,11 @@ |
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; |
}; |