diff options
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r-- | gm/yuvtorgbeffect.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp index 74c11a9a8e..0c69ec0dd5 100644 --- a/gm/yuvtorgbeffect.cpp +++ b/gm/yuvtorgbeffect.cpp @@ -90,7 +90,8 @@ protected: GrSurfaceDesc desc; desc.fWidth = fBmp[i].width(); desc.fHeight = fBmp[i].height(); - desc.fConfig = SkImageInfo2GrPixelConfig(fBmp[i].info(), *context->caps()); + desc.fConfig = + SkImageInfo2GrPixelConfig(fBmp[i].info(), *context->contextPriv().caps()); SkASSERT(kUnknown_GrPixelConfig != desc.fConfig); proxy[i] = proxyProvider->createTextureProxy(desc, SkBudgeted::kYes, @@ -216,7 +217,8 @@ protected: GrSurfaceDesc desc; desc.fWidth = fBmp[index].width(); desc.fHeight = fBmp[index].height(); - desc.fConfig = SkImageInfo2GrPixelConfig(fBmp[index].info(), *context->caps()); + desc.fConfig = + SkImageInfo2GrPixelConfig(fBmp[index].info(), *context->contextPriv().caps()); SkASSERT(kUnknown_GrPixelConfig != desc.fConfig); proxy[i] = proxyProvider->createTextureProxy( |