aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/image_pict.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r--gm/image_pict.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp
index c4bb8130bb..73fedec3a0 100644
--- a/gm/image_pict.cpp
+++ b/gm/image_pict.cpp
@@ -271,10 +271,9 @@ protected:
static void draw_as_tex(SkCanvas* canvas, SkImage* image, SkScalar x, SkScalar y) {
#if SK_SUPPORT_GPU
sk_sp<SkColorSpace> texColorSpace;
- sk_sp<GrTextureProxy> proxy(
- as_IB(image)->asTextureProxyRef(canvas->getGrContext(), GrSamplerParams::ClampBilerp(),
- canvas->imageInfo().colorSpace(), &texColorSpace,
- nullptr));
+ sk_sp<GrTextureProxy> proxy(as_IB(image)->asTextureProxyRef(
+ canvas->getGrContext(), GrSamplerState::ClampBilerp(),
+ canvas->imageInfo().colorSpace(), &texColorSpace, nullptr));
if (!proxy) {
// show placeholder if we have no texture
SkPaint paint;