diff options
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r-- | gm/texturedomaineffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index e314668d00..63e01111f4 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -89,7 +89,7 @@ protected: GrSurfaceDesc desc; desc.fWidth = fBmp.width(); desc.fHeight = fBmp.height(); - desc.fConfig = SkImageInfo2GrPixelConfig(fBmp.info(), *context->contextPriv().caps()); + desc.fConfig = SkColorType2GrPixelConfig(fBmp.colorType()); SkASSERT(kUnknown_GrPixelConfig != desc.fConfig); sk_sp<GrTextureProxy> proxy = proxyProvider->createTextureProxy( |