Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/core/SkPixelRef.h

Issue 374743003: Skia side RGB to YUV gpu conversion (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkPixelRef.h
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index a997993eb11e1d7f0a570c6e899deea66320c8a8..6a5cf15d9f30f3852afdaeb6f768ee278a711cfc 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -40,6 +40,7 @@
class SkColorTable;
class SkData;
+class SkImageGenerator;
struct SkIRect;
class SkMutex;
@@ -226,6 +227,10 @@ public:
*/
virtual GrTexture* getTexture() { return NULL; }
+ /** Do we have data that requires decoding from an image generator?
+ */
+ virtual SkImageGenerator* getImageGenerator() const { return NULL; }
sugoi1 2014/07/08 14:42:02 Since the new API was in SkImageGenerator, I assum
reed1 2014/07/08 15:08:52 Hmm, I wonder if its safer to just expose getYUVPl
sugoi1 2014/07/09 19:57:43 Done.
+
bool readPixels(SkBitmap* dst, const SkIRect* subset = NULL);
/**

Powered by Google App Engine
This is Rietveld 408576698