OSDN Git Service

Really make Surface thread-safe.
authorJeff Brown <jeffbrown@google.com>
Tue, 30 Apr 2013 23:33:00 +0000 (16:33 -0700)
committerJeff Brown <jeffbrown@google.com>
Wed, 1 May 2013 22:28:01 +0000 (15:28 -0700)
commitfc0ebd7d379ff63c00ebf78ca252fab5070213da
treee766cbf5c89929af1c90c32b39df466d1811edaf
parent561dcc5823eec20c48d116531556b32e9de66f91
Really make Surface thread-safe.

There were many places where the native object was being
accessed improperly.  Also some places where CloseGuard might
not be acquired or released correctly or where the generation
count might not be updated.

Fixed them all.

That said, Surface isn't intended to be used concurrently
so please don't do it.  This is only intended to make
hard to find crashes less likely.

Bug: 8328715
Change-Id: I981ef33425823e0fd7ad6b64443f2ec9b0c8335e
core/java/android/view/Surface.java
core/java/android/view/SurfaceControl.java
core/jni/android_view_Surface.cpp