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

Unified Diff: src/lazy/SkDiscardablePixelRef.h

Issue 374743003: Skia side RGB to YUV gpu conversion (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ported a minimal set of blink side changes for YUV decoding tests 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: src/lazy/SkDiscardablePixelRef.h
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h
index 2edef80128f0bb8a8e88de4001a2d0715f2b3cdb..f773ca38514a7e38b85d9cbaaa5ba30f2c741d08 100644
--- a/src/lazy/SkDiscardablePixelRef.h
+++ b/src/lazy/SkDiscardablePixelRef.h
@@ -33,6 +33,10 @@ protected:
return fGenerator->refEncodedData();
}
+ virtual bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]) SK_OVERRIDE {
+ return fGenerator->getYUV8Planes(sizes, planes, rowBytes);
+ }
+
private:
SkImageGenerator* const fGenerator;
SkDiscardableMemory::Factory* const fDMFactory;

Powered by Google App Engine
This is Rietveld 408576698