OSDN Git Service

Take advantage of EGL_BUFFER_PRESERVED on IMG.
authorRomain Guy <romainguy@google.com>
Thu, 2 Jun 2011 21:17:28 +0000 (14:17 -0700)
committerRomain Guy <romainguy@google.com>
Thu, 2 Jun 2011 21:30:06 +0000 (14:30 -0700)
commit6f7d9394ec69e9fb38ca5fc2caf6d2aef6f7442d
tree9c0392b20067d90921ca193f69f2965e45af469d
parentaef1987f4e53efdc29216ac66d7412678a762b2e
Take advantage of EGL_BUFFER_PRESERVED on IMG.

The IMG architecture does not support the EGL_SWAP_BEHAVIOR_PRESERVED_BIT
in EGL configurations. This bit is used only to be able to change the
EGL_SWAP_BEHAVIOR, which matters when the default behavior is not the
one we want. However on IMG, the default swap behavior is the one we
desire.

Change-Id: Iff5980c97df9e41bc837e424baf83b8eadbb7161
core/java/android/view/GLES20Canvas.java
core/java/android/view/HardwareRenderer.java
core/jni/android_view_GLES20Canvas.cpp