diff options
author | sugoi <sugoi@chromium.org> | 2014-07-21 11:37:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-21 11:37:39 -0700 |
commit | 518d83dbc1c899e316e8c896af5defb58b83120f (patch) | |
tree | 035e0e6b97af79dc24037c647f6093ad9b33f9a9 /src/lazy | |
parent | 02cafcc1bf6e2968c2efdf459871167970da150e (diff) |
Skia side RGB to YUV gpu conversion
This code is the one that's currently working in my local chromium build. A few things still need to be addressed and I'll highlight these directly in the code.
BUG=skia:
R=reed@google.com, bsalomon@google.com, senorblanco@google.com, senorblanco@chromium.org, robertphillips@google.com, scroggo@google.com, halcanary@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/374743003
Diffstat (limited to 'src/lazy')
-rw-r--r-- | src/lazy/SkDiscardablePixelRef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h index 2edef80128..d31a040164 100644 --- a/src/lazy/SkDiscardablePixelRef.h +++ b/src/lazy/SkDiscardablePixelRef.h @@ -48,6 +48,12 @@ private: size_t rowBytes, SkDiscardableMemory::Factory* factory); + virtual bool onGetYUV8Planes(SkISize sizes[3], + void* planes[3], + size_t rowBytes[3]) SK_OVERRIDE { + return fGenerator->getYUV8Planes(sizes, planes, rowBytes); + } + friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap*, SkDiscardableMemory::Factory*); |