diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-27 19:31:41 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-27 19:31:41 +0000 |
commit | 1d89c93b2a61a9679f444b19b6fce4325ae7df65 (patch) | |
tree | 9a64e0e4786926e85b6e3a1a73058f0e003dc43e /src/gpu/gl/GrGLCaps.h | |
parent | 7f581a97288ee6802d3c4f47a292def1712425b4 (diff) |
Added ReadPixels format-supported check to GL Caps
http://codereview.appspot.com/6336055/
git-svn-id: http://skia.googlecode.com/svn/trunk@4374 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index ec75a53428..322e7339f7 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -214,6 +214,11 @@ public: /// Is GL_ARB_IMAGING supported bool imagingSupport() const { return fImagingSupport; } + // Does ReadPixels support the provided format/type combo? + bool readPixelsSupported(const GrGLInterface* intf, + GrGLenum format, + GrGLenum type) const; + private: /** * Maintains a bit per GrPixelConfig. It is used to avoid redundantly @@ -285,6 +290,7 @@ private: bool fTexStorageSupport : 1; bool fTextureRedSupport : 1; bool fImagingSupport : 1; + bool fTwoFormatLimit : 1; }; #endif |