From 604e4c28016777bd72893d95b5b83a1812bb67b4 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 25 Nov 2020 21:08:17 -0500 Subject: [PATCH] move local function inside build-flag Change-Id: Ibcedd542bf607f8a14ba71db7778da9783cc1772 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/338797 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- src/shaders/SkImageShader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shaders/SkImageShader.cpp b/src/shaders/SkImageShader.cpp index fb35cbc4ab..4269fb2723 100755 --- a/src/shaders/SkImageShader.cpp +++ b/src/shaders/SkImageShader.cpp @@ -223,6 +223,7 @@ static bool is_default_cubic_resampler(SkCubicResampler cubic) { SkScalarNearlyEqual(cubic.C, kDefaultCubicResampler.C); } +#ifdef SK_ENABLE_LEGACY_SHADERCONTEXT static bool sampling_to_quality(SkSamplingOptions sampling, SkFilterQuality* quality) { int q = -1; // not a legal quality enum @@ -253,7 +254,6 @@ static bool sampling_to_quality(SkSamplingOptions sampling, SkFilterQuality* qua return false; } -#ifdef SK_ENABLE_LEGACY_SHADERCONTEXT static bool legacy_shader_can_handle(const SkMatrix& inv) { SkASSERT(!inv.hasPerspective());