diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-05-06 14:59:45 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-05-06 14:59:45 -0700 |
commit | 407cae950325682a56fe5373dd218a666da901ef (patch) | |
tree | 0a2a4bbc602f2a9ff4103cfd3641992d2a9214b4 /libs/rs/rsContext.h | |
parent | 6b7d778fa7420a45e54a78fb3e034cb68ad6c4bd (diff) | |
download | frameworks_base-407cae950325682a56fe5373dd218a666da901ef.zip frameworks_base-407cae950325682a56fe5373dd218a666da901ef.tar.gz frameworks_base-407cae950325682a56fe5373dd218a666da901ef.tar.bz2 |
rsLib cleanup
Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r-- | libs/rs/rsContext.h | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h index 107f639..1407b7e 100644 --- a/libs/rs/rsContext.h +++ b/libs/rs/rsContext.h @@ -42,9 +42,10 @@ #include "rsgApiStructs.h" #include "rsLocklessFifo.h" -#include <ui/egl/android_natives.h> #endif // ANDROID_RS_SERIALIZE +class ANativeWindow; + // --------------------------------------------------------------------------- namespace android { @@ -197,43 +198,16 @@ public: } props; void dumpDebug() const; - void checkError(const char *, bool isFatal = false) const; void setError(RsError e, const char *msg = NULL) const; mutable const ObjectBase * mObjHead; - bool ext_OES_texture_npot() const {return mGL.OES_texture_npot;} - bool ext_GL_IMG_texture_npot() const {return mGL.GL_IMG_texture_npot;} - bool ext_GL_NV_texture_npot_2D_mipmap() const {return mGL.GL_NV_texture_npot_2D_mipmap;} - float ext_texture_max_aniso() const {return mGL.EXT_texture_max_aniso; } - uint32_t getMaxFragmentTextures() const {return mGL.mMaxFragmentTextureImageUnits;} - uint32_t getMaxFragmentUniformVectors() const {return mGL.mMaxFragmentUniformVectors;} - uint32_t getMaxVertexUniformVectors() const {return mGL.mMaxVertexUniformVectors;} - uint32_t getMaxVertexAttributes() const {return mGL.mMaxVertexAttribs;} - uint32_t getDPI() const {return mDPI;} void setDPI(uint32_t dpi) {mDPI = dpi;} Device *mDev; protected: - struct { - int32_t mMaxVaryingVectors; - int32_t mMaxTextureImageUnits; - - int32_t mMaxFragmentTextureImageUnits; - int32_t mMaxFragmentUniformVectors; - - int32_t mMaxVertexAttribs; - int32_t mMaxVertexUniformVectors; - int32_t mMaxVertexTextureUnits; - - bool OES_texture_npot; - bool GL_IMG_texture_npot; - bool GL_NV_texture_npot_2D_mipmap; - float EXT_texture_max_aniso; - } mGL; - uint32_t mDPI; uint32_t mWidth; uint32_t mHeight; |