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