move local function inside build-flag
Change-Id: Ibcedd542bf607f8a14ba71db7778da9783cc1772 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/338797 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
parent
39b4c86fe9
commit
604e4c2801
@ -223,6 +223,7 @@ static bool is_default_cubic_resampler(SkCubicResampler cubic) {
|
|||||||
SkScalarNearlyEqual(cubic.C, kDefaultCubicResampler.C);
|
SkScalarNearlyEqual(cubic.C, kDefaultCubicResampler.C);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SK_ENABLE_LEGACY_SHADERCONTEXT
|
||||||
static bool sampling_to_quality(SkSamplingOptions sampling, SkFilterQuality* quality) {
|
static bool sampling_to_quality(SkSamplingOptions sampling, SkFilterQuality* quality) {
|
||||||
int q = -1; // not a legal quality enum
|
int q = -1; // not a legal quality enum
|
||||||
|
|
||||||
@ -253,7 +254,6 @@ static bool sampling_to_quality(SkSamplingOptions sampling, SkFilterQuality* qua
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SK_ENABLE_LEGACY_SHADERCONTEXT
|
|
||||||
static bool legacy_shader_can_handle(const SkMatrix& inv) {
|
static bool legacy_shader_can_handle(const SkMatrix& inv) {
|
||||||
SkASSERT(!inv.hasPerspective());
|
SkASSERT(!inv.hasPerspective());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user