diff options
author | 2017-01-30 08:06:27 -0500 | |
---|---|---|
committer | 2017-01-30 13:40:15 +0000 | |
commit | 40fd7c94c24bb30d888c3d85a79cbb96c7fbf800 (patch) | |
tree | 075e886c01de864ba982910f1854f47ba1ae95d8 /gm/texdata.cpp | |
parent | 55b72530fedeb58154635531751a8730982fbf2a (diff) |
Push GrTextureProxy down to more effects
Change-Id: Ie3f32a88f25af082c25bc6daf3fe24e303e80f9e
Reviewed-on: https://skia-review.googlesource.com/7616
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r-- | gm/texdata.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 70afd22ec5..6b229a3db3 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -16,6 +16,7 @@ #include "GrTextureContext.h" #include "GrFixedClip.h" #include "SkColorPriv.h" +#include "SkGr.h" #include "effects/GrPorterDuffXferProcessor.h" #include "effects/GrSimpleTextureEffect.h" @@ -86,9 +87,9 @@ DEF_SIMPLE_GM_BG(texdata, canvas, 2 * S, 2 * S, SK_ColorBLACK) { GrSurfaceDesc desc; desc.fOrigin = i ? kBottomLeft_GrSurfaceOrigin : kTopLeft_GrSurfaceOrigin; - desc.fConfig = kBGRA_8888_GrPixelConfig; desc.fWidth = 2 * S; desc.fHeight = 2 * S; + desc.fConfig = SkImageInfo2GrPixelConfig(ii, *context->caps()); sk_sp<GrSurfaceProxy> proxy = GrSurfaceProxy::MakeDeferred(*context->caps(), context->textureProvider(), |