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

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: Update comments on compressed formats 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/gl/GrGLCaps.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..67c8f87e762f24368f7a44b2cd7737e270c415f5 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -620,6 +620,19 @@ enum GrGLBackendState {
};
/**
+ * The compressed texture formats that may be supported by the renderer.
+ * Make sure to check for the required capabilities using
+ * GrDrawTargetCaps::compressedTextureSupport
bsalomon 2014/05/23 13:40:04 Maybe we should throw the 8bit index format in her
krajcevski 2014/05/23 15:11:46 For paletted textures, OpenGL ES uses glCompressed
+ */
+enum GrCompressedFormat {
+ kUncompressed_GrCompressedFormat = -1,
bsalomon 2014/05/23 13:40:04 Is this used anywhere? Or is it related to a comin
krajcevski 2014/05/23 15:11:46 It will be used to denote uncompressed textures in
+ 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/gl/GrGLCaps.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698