1 /* 2 * Copyright 2015 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkFilterQuality_DEFINED 9 #define SkFilterQuality_DEFINED 10 11 #include "include/core/SkTypes.h" 12 13 /** 14 * Controls how much filtering to be done when scaling/transforming complex colors 15 * e.g. images 16 */ 17 enum SkFilterQuality { 18 kNone_SkFilterQuality, //!< fastest but lowest quality, typically nearest-neighbor 19 kLow_SkFilterQuality, //!< typically bilerp 20 kMedium_SkFilterQuality, //!< typically bilerp + mipmaps for down-scaling 21 kHigh_SkFilterQuality, //!< slowest but highest quality, typically bicubic or better 22 23 kLast_SkFilterQuality = kHigh_SkFilterQuality, 24 }; 25 26 #endif 27