aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImageInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkImageInfo.h')
-rw-r--r--include/core/SkImageInfo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
index 459a0ee43e..7b48c3a430 100644
--- a/include/core/SkImageInfo.h
+++ b/include/core/SkImageInfo.h
@@ -16,6 +16,22 @@ class SkReadBuffer;
class SkWriteBuffer;
/**
+ * This enum provides information about "how" an image will be used. For older GPUs that do not
+ * support non-power-of-2 tiling, some routines need to know this information before they create
+ * a texture.
+ */
+enum SkImageUsageType {
+ /* Image will not be tiled (regardless of filtering) */
+ kUntiled_SkImageUsageType,
+
+ /* Image will be tiled, but not filtered */
+ kTiled_Unfiltered_SkImageUsageType,
+
+ /* Image will be tiled and filtered */
+ kTiled_Filtered_SkImageUsageType,
+};
+
+/**
* Describes how to interpret the alpha compoent of a pixel.
*/
enum SkAlphaType {