| Index: src/gpu/gl/GrGLCaps.h
|
| diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
|
| index e2bc100cae8d6f02f188e43dfc93fd371a24a77c..1602a0f63d113935b2484de59a8778b9a4f9146f 100644
|
| --- a/src/gpu/gl/GrGLCaps.h
|
| +++ b/src/gpu/gl/GrGLCaps.h
|
| @@ -135,11 +135,19 @@ public:
|
| return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseTexStorage_Flag);
|
| }
|
|
|
| + bool canUseConfigWithTexelBuffer(GrPixelConfig config) const {
|
| + return SkToBool(fConfigTable[config].fFlags & ConfigInfo::kCanUseWithTexelBuffer_Flag);
|
| + }
|
| +
|
| /** Returns the mapping between GrPixelConfig components and GL internal format components. */
|
| const GrSwizzle& configSwizzle(GrPixelConfig config) const {
|
| return fConfigTable[config].fSwizzle;
|
| }
|
|
|
| + GrGLenum configSizedInternalFormat(GrPixelConfig config) const {
|
| + return fConfigTable[config].fFormats.fSizedInternalFormat;
|
| + }
|
| +
|
| bool getTexImageFormats(GrPixelConfig surfaceConfig, GrPixelConfig externalConfig,
|
| GrGLenum* internalFormat, GrGLenum* externalFormat,
|
| GrGLenum* externalType) const;
|
| @@ -468,6 +476,7 @@ private:
|
| kRenderable_Flag = 0x4,
|
| kRenderableWithMSAA_Flag = 0x8,
|
| kCanUseTexStorage_Flag = 0x10,
|
| + kCanUseWithTexelBuffer_Flag = 0x20,
|
| };
|
| uint32_t fFlags;
|
|
|
|
|