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

Unified Diff: include/gpu/GrTypes.h

Issue 292323003: Add compressed texture capabilities for GPU devices (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Cleanup the enum and remove comment Created 6 years, 7 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 | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | src/gpu/GrDrawTarget.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTypes.h
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index c1b3554c6e008eb322d18838618a53cbeeb54495..1155d5cb70ec0479bafc67dbfbab46c55d2ed53f 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -620,6 +620,17 @@ enum GrGLBackendState {
};
/**
+ * The compressed texture formats that are supported
+ */
+enum GrCompressedFormat {
+ kUncompressed_GrCompressedFormat = -1,
+ kETC1_GrCompressedFormat = 0,
+
+ kLast_GrCompressedFormat = kETC1_GrCompressedFormat
+};
+static const size_t kCompressedFormatCount = kLast_GrCompressedFormat + 1;
+
+/**
* This value translates to reseting all the context state for any backend.
*/
static const uint32_t kAll_GrBackendState = 0xffffffff;
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | src/gpu/GrDrawTarget.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698