diff options
author | 2010-08-08 00:14:31 -0700 | |
---|---|---|
committer | 2010-08-08 17:45:07 -0700 | |
commit | 163935113919a184122b8b3bd672ef08c8df65dc (patch) | |
tree | c8aa9b460ae7fd9e2e675d4bf25924a3459f8696 /libs/hwui/TextureCache.cpp | |
parent | 1ad7343409442a4a027c0092d07beff1b412a7dc (diff) |
Make libhwui entirely optional.
The makefile variable USE_OPENGL_RENDERER must be set to true to compile
libhwui and the related code in the JNI layer.
This change also removes obsolete APIs from Canvas that must not be used
and would be confusing if left in. These APIs were remnants of our first
attempt at an OpenGL renderer for the view hierarchy and had not been
taken out before Android 1.0 was released.
Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r-- | libs/hwui/TextureCache.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index 1cb593267ae4..3f9698db6032 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -32,10 +32,8 @@ TextureCache::TextureCache(uint32_t maxByteSize): mSize(0), mMaxSize(maxByteSize) { mCache.setOnEntryRemovedListener(this); - GLint maxTextureSize; - glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); - LOGD("Maximum texture dimension is %d pixels", maxTextureSize); - mMaxTextureSize = maxTextureSize; + glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize); + LOGD("Maximum texture dimension is %d pixels", mMaxTextureSize); } TextureCache::~TextureCache() { |