am 93c14069: Merge "hwui: add extension to support unpack operations in OpenGL ES 2.0"
* commit '93c14069588eac2c652263295bc89eb2a2eb3d6b': hwui: add extension to support unpack operations in OpenGL ES 2.0
This commit is contained in:
@@ -61,6 +61,7 @@ Extensions::Extensions(): Singleton<Extensions>() {
|
|||||||
mHasTiledRendering = hasGlExtension("GL_QCOM_tiled_rendering");
|
mHasTiledRendering = hasGlExtension("GL_QCOM_tiled_rendering");
|
||||||
mHas1BitStencil = hasGlExtension("GL_OES_stencil1");
|
mHas1BitStencil = hasGlExtension("GL_OES_stencil1");
|
||||||
mHas4BitStencil = hasGlExtension("GL_OES_stencil4");
|
mHas4BitStencil = hasGlExtension("GL_OES_stencil4");
|
||||||
|
mHasUnpackSubImage = hasGlExtension("GL_EXT_unpack_subimage");
|
||||||
|
|
||||||
// Query EGL extensions
|
// Query EGL extensions
|
||||||
findExtensions(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS), mEglExtensionList);
|
findExtensions(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS), mEglExtensionList);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
inline bool has1BitStencil() const { return mHas1BitStencil; }
|
inline bool has1BitStencil() const { return mHas1BitStencil; }
|
||||||
inline bool has4BitStencil() const { return mHas4BitStencil; }
|
inline bool has4BitStencil() const { return mHas4BitStencil; }
|
||||||
inline bool hasNvSystemTime() const { return mHasNvSystemTime; }
|
inline bool hasNvSystemTime() const { return mHasNvSystemTime; }
|
||||||
inline bool hasUnpackRowLength() const { return mVersionMajor >= 3; }
|
inline bool hasUnpackRowLength() const { return mVersionMajor >= 3 || mHasUnpackSubImage; }
|
||||||
inline bool hasPixelBufferObjects() const { return mVersionMajor >= 3; }
|
inline bool hasPixelBufferObjects() const { return mVersionMajor >= 3; }
|
||||||
inline bool hasOcclusionQueries() const { return mVersionMajor >= 3; }
|
inline bool hasOcclusionQueries() const { return mVersionMajor >= 3; }
|
||||||
inline bool hasFloatTextures() const { return mVersionMajor >= 3; }
|
inline bool hasFloatTextures() const { return mVersionMajor >= 3; }
|
||||||
@@ -74,6 +74,7 @@ private:
|
|||||||
bool mHas1BitStencil;
|
bool mHas1BitStencil;
|
||||||
bool mHas4BitStencil;
|
bool mHas4BitStencil;
|
||||||
bool mHasNvSystemTime;
|
bool mHasNvSystemTime;
|
||||||
|
bool mHasUnpackSubImage;
|
||||||
|
|
||||||
int mVersionMajor;
|
int mVersionMajor;
|
||||||
int mVersionMinor;
|
int mVersionMinor;
|
||||||
|
|||||||
Reference in New Issue
Block a user