Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkImageInfo.h

Issue 1291803002: Extend SkImageGenerator to support natively generated GrTextures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkImageInfo.h
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
index 459a0ee43ef0001530a0bff6f36d9b670dfbee7e..7b48c3a43007911b45dd34aad666ef5eba3ec44e 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 {
scroggo 2015/08/13 19:59:13 Maybe this name should incorporate the word "tilin
reed1 2015/08/13 20:57:08 It also appears in SkImageGenrerator.h which is pu
+ /* 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 {

Powered by Google App Engine
This is Rietveld 408576698