Index: include/core/SkPixelRef.h |
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
index 263145ba3d90baefabd5552cefed18892fed1c02..d7442cfbd73c04f5fdc91d9ef3f85bf577238985 100644 |
--- a/include/core/SkPixelRef.h |
+++ b/include/core/SkPixelRef.h |
@@ -14,6 +14,7 @@ |
#include "SkString.h" |
#include "SkFlattenable.h" |
#include "SkImageInfo.h" |
+#include "SkSize.h" |
#include "SkTDArray.h" |
//#define xed |
@@ -227,6 +228,18 @@ public: |
*/ |
virtual GrTexture* getTexture() { return NULL; } |
+ /** |
+ * If any planes or rowBytes is NULL, this should output the sizes and return true |
+ * if it can efficiently return YUV planar data. If it cannot, it should return false. |
+ * |
+ * If all planes and rowBytes are not NULL, then it should copy the associated Y,U,V data |
+ * into those planes of memory supplied by the caller. It should validate that the sizes |
+ * match what it expected. If the sizes do not match, it should return false. |
+ */ |
+ virtual bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]) { |
scroggo
2014/07/21 14:53:00
Why not follow the convention used in SkImageGener
sugoi1
2014/07/21 15:08:14
Done.
|
+ return false; |
+ } |
+ |
bool readPixels(SkBitmap* dst, const SkIRect* subset = NULL); |
/** |