diff options
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.fp')
-rw-r--r-- | src/gpu/effects/GrYUVtoRGBEffect.fp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.fp b/src/gpu/effects/GrYUVtoRGBEffect.fp index e49fedae71..453800dd1b 100644 --- a/src/gpu/effects/GrYUVtoRGBEffect.fp +++ b/src/gpu/effects/GrYUVtoRGBEffect.fp @@ -41,6 +41,7 @@ layout(key) in bool nv12; sk_sp<GrTextureProxy> uProxy, sk_sp<GrTextureProxy> vProxy, SkYUVColorSpace colorSpace, bool nv12); + SkString dumpInfo() const override; } @cpp { @@ -105,6 +106,19 @@ layout(key) in bool nv12; GrSamplerState(GrSamplerState::WrapMode::kClamp, uvFilterMode))); } + + SkString GrYUVtoRGBEffect::dumpInfo() const { + SkString str; + str.appendf("Y: %d %d U: %d %d V: %d %d\n", + fYSampler.proxy()->uniqueID().asUInt(), + fYSampler.proxy()->underlyingUniqueID().asUInt(), + fUSampler.proxy()->uniqueID().asUInt(), + fUSampler.proxy()->underlyingUniqueID().asUInt(), + fVSampler.proxy()->uniqueID().asUInt(), + fVSampler.proxy()->underlyingUniqueID().asUInt()); + + return str; + } } void main() { |