From 2ece4cdc3fd0f8a45a889c711dba7165729e8ca5 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 28 Jan 2011 18:21:54 -0800 Subject: Reset ANativeWindow crop on buffer geometry changes. This changes the ANativeWindow API and the two implementations to reset the window's crop rectangle to be uncropped when the window's buffer geometry is changed. Bug: 3359604 Change-Id: I64283dc8382ae687787ec0bebe6a5d5b4a0dcd6b --- include/ui/egl/android_natives.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ui') diff --git a/include/ui/egl/android_natives.h b/include/ui/egl/android_natives.h index 654d0f3..fdc8105 100644 --- a/include/ui/egl/android_natives.h +++ b/include/ui/egl/android_natives.h @@ -315,6 +315,8 @@ static inline int native_window_set_buffer_count( * If all parameters are 0, the normal behavior is restored. That is, * dequeued buffers following this call will be sized to the window's size. * + * Calling this function will reset the window crop to a NULL value, which + * disables cropping of the buffers. */ static inline int native_window_set_buffers_geometry( ANativeWindow* window, -- cgit v1.1