diff options
Diffstat (limited to 'include/core/SkTypes.h')
-rw-r--r-- | include/core/SkTypes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 4592168bd4..756eae8628 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -439,6 +439,17 @@ template <typename T> static inline const T& SkTPin(const T& value, const T& min return SkTMax(SkTMin(value, max), min); } + +/////////////////////////////////////////////////////////////////////////////// + +/** + * Indicates whether an allocation should count against a cache budget. + */ +enum class SkBudgeted : bool { + kNo = false, + kYes = true +}; + /////////////////////////////////////////////////////////////////////////////// /** Use to combine multiple bits in a bitmask in a type safe way. |