summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-01-28 18:21:54 -0800
committerJamie Gennis <jgennis@google.com>2011-01-28 18:21:54 -0800
commit2ece4cdc3fd0f8a45a889c711dba7165729e8ca5 (patch)
treea76c7f3eed692edcce369a6ae198202fdd1c7500 /include/ui
parent0982dc6488a921d9d54d23b9180a9acf33c61526 (diff)
downloadframeworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.zip
frameworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.tar.gz
frameworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.tar.bz2
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
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/egl/android_natives.h2
1 files changed, 2 insertions, 0 deletions
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,