aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlTexture.mm
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-09-07 13:59:50 -0400
committerGravatar Brian Salomon <bsalomon@google.com>2017-09-07 18:08:46 +0000
commitb3e39f67599adf418215652fe714d3883dd5fd88 (patch)
tree0af33e6de95fb397c15ae82e55426dda15be8e5c /src/gpu/mtl/GrMtlTexture.mm
parent1d3df3848ff297e353a2d0f0fae6ec4a55ab7ba6 (diff)
Update mtl backend to use GrSamplerState
Bug: skia: Change-Id: I9f9469f6c250f80095b9c36539226919fa54c75e Reviewed-on: https://skia-review.googlesource.com/43740 Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlTexture.mm')
-rw-r--r--src/gpu/mtl/GrMtlTexture.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/mtl/GrMtlTexture.mm b/src/gpu/mtl/GrMtlTexture.mm
index ec7f3b1750..cdc9b0c195 100644
--- a/src/gpu/mtl/GrMtlTexture.mm
+++ b/src/gpu/mtl/GrMtlTexture.mm
@@ -44,12 +44,12 @@ sk_sp<GrMtlTexture> GrMtlTexture::CreateNewTexture(GrMtlGpu* gpu, SkBudgeted bud
}
// This method parallels GrTextureProxy::highestFilterMode
-static inline GrSamplerParams::FilterMode highest_filter_mode(GrPixelConfig config) {
+static inline GrSamplerState::Filter highest_filter_mode(GrPixelConfig config) {
if (GrPixelConfigIsSint(config)) {
// We only ever want to nearest-neighbor sample signed int textures.
- return GrSamplerParams::kNone_FilterMode;
+ return GrSamplerState::Filter::kNearest;
}
- return GrSamplerParams::kMipMap_FilterMode;
+ return GrSamplerState::Filter::kMipMap;
}
GrMtlTexture::GrMtlTexture(GrMtlGpu* gpu,