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

Unified Diff: src/lazy/SkDiscardablePixelRef.h

Issue 863053002: new API for retrieving YUV data (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ripple API change to SkPixelRef -- still need to tackle decoders" Created 5 years, 11 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: src/lazy/SkDiscardablePixelRef.h
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h
index 448f0ab24b907c1fe7b3ce1e49146905e30f0cd3..17447f81484a93b5a120a1ebe81ace19d57c1f61 100644
--- a/src/lazy/SkDiscardablePixelRef.h
+++ b/src/lazy/SkDiscardablePixelRef.h
@@ -48,11 +48,13 @@ private:
size_t rowBytes,
SkDiscardableMemory::Factory* factory);
- virtual bool onGetYUV8Planes(SkISize sizes[3],
- void* planes[3],
- size_t rowBytes[3],
- SkYUVColorSpace* colorSpace) SK_OVERRIDE {
- return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace);
+ bool onQueryYUV8(SkISize logical[3], SkISize optimal[3]) SK_OVERRIDE {
+ return fGenerator->queryYUV8(logical, optimal);
+ }
+
+ bool onGetYUV8(const SkISize allocationSizes[3], void* planes[3],
+ SkYUVColorSpace* cspace) SK_OVERRIDE {
+ return fGenerator->getYUV8(allocationSizes, planes, cspace);
}
friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap*,

Powered by Google App Engine
This is Rietveld 408576698