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

Unified Diff: src/gpu/gl/GrGLCaps.h

Issue 1570173004: This CL adds glTexStorage support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moving check for TexStorage support inside allocate_and_populate_* calls. Changing the caps to indi… Created 4 years, 10 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: src/gpu/gl/GrGLCaps.h
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index fc29615cb54190ecb03ce3ee7075cc114d10055b..7c3fcad775bf7ab96c9cb5d7b4de01e7960b246d 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -133,6 +133,11 @@ public:
}
}
+ bool isConfigTexSupportEnabled(GrPixelConfig config) const override {
+ SkASSERT(kGrPixelConfigCnt > config);
+ return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseTexStorage_Flag);
+ }
+
/** Returns the mapping between GrPixelConfig components and GL internal format components. */
const GrSwizzle& configSwizzle(GrPixelConfig config) const {
return fConfigTable[config].fSwizzle;
@@ -274,9 +279,6 @@ public:
/// Is there support for texture parameter GL_TEXTURE_USAGE
bool textureUsageSupport() const { return fTextureUsageSupport; }
- /// Is there support for glTexStorage
- bool texStorageSupport() const { return fTexStorageSupport; }
-
/// Is there support for GL_RED and GL_R8
bool textureRedSupport() const { return fTextureRedSupport; }
@@ -396,7 +398,6 @@ private:
bool fPackRowLengthSupport : 1;
bool fPackFlipYSupport : 1;
bool fTextureUsageSupport : 1;
- bool fTexStorageSupport : 1;
bool fTextureRedSupport : 1;
bool fImagingSupport : 1;
bool fVertexArrayObjectSupport : 1;
@@ -482,6 +483,7 @@ private:
kTextureable_Flag = 0x2,
kRenderable_Flag = 0x4,
kRenderableWithMSAA_Flag = 0x8,
+ kCanUseTexStorage_Flag = 0x16,
bsalomon 2016/02/27 14:18:54 0x10?
cblume 2016/02/28 02:44:42 OMG. omg.
};
uint32_t fFlags;

Powered by Google App Engine
This is Rietveld 408576698