diff options
author | Mathias Agopian <mathias@google.com> | 2011-11-15 18:14:51 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-15 18:14:51 -0800 |
commit | 811131db6f5fa0a375183631804a090ba48c37d6 (patch) | |
tree | 5d930f2f97180713f8e8a12b97f0289aeb12a259 /services | |
parent | c545019b5c5eaed08c8c2c0f0facd17282bc1212 (diff) | |
parent | c0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7 (diff) | |
download | frameworks_base-811131db6f5fa0a375183631804a090ba48c37d6.zip frameworks_base-811131db6f5fa0a375183631804a090ba48c37d6.tar.gz frameworks_base-811131db6f5fa0a375183631804a090ba48c37d6.tar.bz2 |
am c0fa2a3b: Merge "rework a bit how we manage EGL extensions" into ics-mr1
* commit 'c0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7':
rework a bit how we manage EGL extensions
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/DisplayHardware.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp index 329c052..f94d321 100644 --- a/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp +++ b/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp @@ -284,22 +284,6 @@ void DisplayHardware::init(uint32_t dpy) glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize); glGetIntegerv(GL_MAX_VIEWPORT_DIMS, mMaxViewportDims); - -#ifdef EGL_ANDROID_swap_rectangle - if (extensions.hasExtension("EGL_ANDROID_swap_rectangle")) { - if (eglSetSwapRectangleANDROID(display, surface, - 0, 0, mWidth, mHeight) == EGL_TRUE) { - // This could fail if this extension is not supported by this - // specific surface (of config) - mFlags |= SWAP_RECTANGLE; - } - } - // when we have the choice between PARTIAL_UPDATES and SWAP_RECTANGLE - // choose PARTIAL_UPDATES, which should be more efficient - if (mFlags & PARTIAL_UPDATES) - mFlags &= ~SWAP_RECTANGLE; -#endif - LOGI("EGL informations:"); LOGI("# of configs : %d", numConfigs); LOGI("vendor : %s", extensions.getEglVendor()); |