summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-26 02:47:39 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-27 14:34:54 -0700
commit64a55af0ac700baecb0877235eb42caac59a3560 (patch)
tree0f3c36ce8204e6cf8eedf04ce9ae24373239ddd8 /native
parent0b722fe9ce98d97dbcb6fefd170b85ab7037e528 (diff)
downloadframeworks_base-64a55af0ac700baecb0877235eb42caac59a3560.zip
frameworks_base-64a55af0ac700baecb0877235eb42caac59a3560.tar.gz
frameworks_base-64a55af0ac700baecb0877235eb42caac59a3560.tar.bz2
Add plumbing for new surface flinger display API.
Cleaned up the implementation of Surface and SurfaceSession to use more consistent naming and structure. Added JNI for all of the new surface flinger display API calls. Enforced the requirement that all Surfaces created by the window manager be named. Updated the display manager service to use the new methods. Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
Diffstat (limited to 'native')
-rw-r--r--native/android/native_window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp
index 99c0fd3..ca0c902 100644
--- a/native/android/native_window.cpp
+++ b/native/android/native_window.cpp
@@ -25,7 +25,7 @@
using namespace android;
ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) {
- sp<ANativeWindow> win = android_Surface_getNativeWindow(env, surface);
+ sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface);
if (win != NULL) {
win->incStrong((void*)ANativeWindow_acquire);
}