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
commit68f9127e88ca6fd849d0f28bcd8776e04aab22e6 (patch)
treeb0fa22b77504bfb1eb90481d72a8ff9447a73f1b /include/ui
parenta7442c95874ac05165586e00a43bee826a0eef99 (diff)
downloadframeworks_native-68f9127e88ca6fd849d0f28bcd8776e04aab22e6.zip
frameworks_native-68f9127e88ca6fd849d0f28bcd8776e04aab22e6.tar.gz
frameworks_native-68f9127e88ca6fd849d0f28bcd8776e04aab22e6.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,