diff options
author | Mathias Agopian <mathias@google.com> | 2011-11-13 23:52:47 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-11-14 19:05:45 -0800 |
commit | e88740e6264d829099d04bbe57d1ec2b14996c40 (patch) | |
tree | bef49e54d8541fda96a8defd68807efa1573d662 /services/surfaceflinger | |
parent | 274e03c90ee6054e81a16b1bd0a54258e08ddee9 (diff) | |
download | frameworks_base-e88740e6264d829099d04bbe57d1ec2b14996c40.zip frameworks_base-e88740e6264d829099d04bbe57d1ec2b14996c40.tar.gz frameworks_base-e88740e6264d829099d04bbe57d1ec2b14996c40.tar.bz2 |
rework a bit how we manage EGL extensions
- don't advertise extensions that are not supported
by any implementation
- remove EGL_ANDROID_swap_rectangle which is not
implemented by anybody and confuses people
- add some comments about mandatory extensions
Bug: 5428001
Change-Id: Id8dc48116ac1d1eb79ec9ef55d03e29d4257c1f3
Diffstat (limited to 'services/surfaceflinger')
-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()); |