diff options
Diffstat (limited to 'src/effects/SkColorFilters.cpp')
-rw-r--r-- | src/effects/SkColorFilters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkColorFilters.cpp b/src/effects/SkColorFilters.cpp index a048abca6b..65766c1fc8 100644 --- a/src/effects/SkColorFilters.cpp +++ b/src/effects/SkColorFilters.cpp @@ -305,7 +305,7 @@ namespace { * to which direction the 0.5 goes. */ static inline int color_component_to_int(float value) { - return sk_float_round2int(GrMax(0.f, GrMin(1.f, value)) * 255.f); + return sk_float_round2int(SkTMax(0.f, SkTMin(1.f, value)) * 255.f); } /** MaskedColorExpr is used to evaluate the color and valid color component flags through the |