aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuGL.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-10 14:54:14 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-10 14:54:14 +0000
commit7107fa789a5999e3f8f7cf7c9c4208c2c443d2af (patch)
tree24b232688dc14a5d3ce2d600d898d230522d7be1 /src/gpu/GrGpuGL.h
parent3d3dfe011ca477ed96ccac2d1a293cd302fb245e (diff)
Add support for GL_EXT_unpack_subimage
Review URL: http://codereview.appspot.com/5359048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2654 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpuGL.h')
-rw-r--r--src/gpu/GrGpuGL.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/gpu/GrGpuGL.h b/src/gpu/GrGpuGL.h
index 84c62f8301..b5b5b15258 100644
--- a/src/gpu/GrGpuGL.h
+++ b/src/gpu/GrGpuGL.h
@@ -48,10 +48,12 @@ protected:
: fStencilFormats(8) // prealloc space for stencil formats
, fMSFBOType(kNone_MSFBO)
, fMaxFragmentUniformVectors(0)
- , fRGBA8Renderbuffer(false)
- , fBGRAFormat(false)
- , fBGRAInternalFormat(false)
- , fTextureSwizzle(false) {
+ , fRGBA8RenderbufferSupport(false)
+ , fBGRAFormatSupport(false)
+ , fBGRAIsInternalFormat(false)
+ , fTextureSwizzleSupport(false)
+ , fUnpackRowLengthSupport(false)
+ , fPackRowLengthSupport(false) {
memset(fAASamples, 0, sizeof(fAASamples));
}
SkTArray<GrGLStencilBuffer::Format, true> fStencilFormats;
@@ -82,19 +84,25 @@ protected:
int fMaxFragmentUniformVectors;
// ES requires an extension to support RGBA8 in RenderBufferStorage
- bool fRGBA8Renderbuffer;
+ bool fRGBA8RenderbufferSupport;
// Is GL_BGRA supported
- bool fBGRAFormat;
+ bool fBGRAFormatSupport;
// Depending on the ES extensions present the BGRA external format may
// correspond either a BGRA or RGBA internalFormat. On desktop GL it is
// RGBA
- bool fBGRAInternalFormat;
+ bool fBGRAIsInternalFormat;
// GL_ARB_texture_swizzle support
- bool fTextureSwizzle;
+ bool fTextureSwizzleSupport;
+ // Is there support for GL_UNPACK_ROW_LENGTH
+ bool fUnpackRowLengthSupport;
+
+ // Is there support for GL_PACK_ROW_LENGTH
+ bool fPackRowLengthSupport;
+
void print() const;
} fGLCaps;