summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-11-15 18:12:00 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-15 18:12:00 -0800
commitc0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7 (patch)
treea1ab2d606f740b39b527f350b9cde13751884764 /services
parentc57bfa4a4bf4c810b5c663df17443463d8192e8f (diff)
parente88740e6264d829099d04bbe57d1ec2b14996c40 (diff)
downloadframeworks_base-c0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7.zip
frameworks_base-c0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7.tar.gz
frameworks_base-c0fa2a3bce40d52c0f1cccd87f8b0816a6faa6a7.tar.bz2
Merge "rework a bit how we manage EGL extensions" into ics-mr1
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/DisplayHardware/DisplayHardware.cpp16
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());