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
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index ec75a53..322e733 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -214,6 +214,11 @@
/// 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 @@
bool fTexStorageSupport : 1;
bool fTextureRedSupport : 1;
bool fImagingSupport : 1;
+ bool fTwoFormatLimit : 1;
};
#endif