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

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
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | include/core/SkPixelRef.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
+ /* 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 {
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | include/core/SkPixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698