OSDN Git Service

Restore the ability to track native Surface changes
authorRomain Guy <romainguy@google.com>
Fri, 1 Mar 2013 02:13:54 +0000 (18:13 -0800)
committerRomain Guy <romainguy@google.com>
Fri, 1 Mar 2013 02:16:31 +0000 (18:16 -0800)
commit8b5aa4846939975adacd6ea1d2a57a2493ac0216
tree1236d8faf6760cc4e9d7cffa6f2a94ffe48a84c7
parent1361dff5eb54b9b02b4d1a2d3e2ed3afd216d79d
Restore the ability to track native Surface changes
Bug #8230990

ViewRootImpl needs to know when the native Surface objects changes
to recreate the EGL surface. A recent refactoring in Surface broke
the behavior of getGenerationId(). This simply restores the old
behavior (every change increments the generation ID by 1.)

Change-Id: Ife1df1ffb2ee7a373b8ebf2431192702ba10f344
core/java/android/view/Surface.java
core/jni/android_view_Surface.cpp