aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkFilterQuality.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-01-23 05:58:07 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-23 05:58:07 -0800
commitf803da12cff1d9b6148fea319220351efebfd1e0 (patch)
tree12019eaec68c713363ef640ec26cf6beac721299 /include/core/SkFilterQuality.h
parenta17241bd0a59efd6c30a007db8f10274b8f80f26 (diff)
add newImage API
BUG=skia:3277 related bug: skbug.com/3276 Review URL: https://codereview.chromium.org/821083002
Diffstat (limited to 'include/core/SkFilterQuality.h')
-rw-r--r--include/core/SkFilterQuality.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/core/SkFilterQuality.h b/include/core/SkFilterQuality.h
new file mode 100644
index 0000000000..db0597e697
--- /dev/null
+++ b/include/core/SkFilterQuality.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkFilterQuality_DEFINED
+#define SkFilterQuality_DEFINED
+
+#include "SkTypes.h"
+
+/**
+ * Controls how much filtering to be done when scaling/transforming complex colors
+ * e.g. images
+ */
+enum SkFilterQuality {
+ kNone_SkFilterQuality, //!< fastest but lowest quality, typically nearest-neighbor
+ kLow_SkFilterQuality, //!< typically bilerp
+ kMedium_SkFilterQuality, //!< typically bilerp + mipmaps for down-scaling
+ kHigh_SkFilterQuality //!< slowest but highest quality, typically bicubic or better
+};
+
+#endif