diff options
author | Mathias Agopian <mathias@google.com> | 2010-10-24 18:35:26 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-10-25 15:58:35 -0700 |
commit | 3026a1c4e88412b7fe997f93fedba871d79a03cd (patch) | |
tree | f8eb7c4b680c14bc6bfdd082e15420dfa0c7e779 /native | |
parent | 457bed2bc6561dd67429dde238453fee8602fa9b (diff) | |
download | frameworks_base-3026a1c4e88412b7fe997f93fedba871d79a03cd.zip frameworks_base-3026a1c4e88412b7fe997f93fedba871d79a03cd.tar.gz frameworks_base-3026a1c4e88412b7fe997f93fedba871d79a03cd.tar.bz2 |
add format parameter to setBufferGeometry
Change-Id: I7cc2acdc6e65e9468ecfd5b2f22e6b495a383be9
Diffstat (limited to 'native')
-rw-r--r-- | native/android/native_window.cpp | 4 | ||||
-rw-r--r-- | native/include/android/native_window.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp index bada078..7f92eec 100644 --- a/native/android/native_window.cpp +++ b/native/android/native_window.cpp @@ -58,8 +58,8 @@ int32_t ANativeWindow_getFormat(ANativeWindow* window) { } int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, - int32_t height) { - native_window_set_buffers_geometry(window, width, height, 0); + int32_t height, int32_t format) { + native_window_set_buffers_geometry(window, width, height, format); return 0; } diff --git a/native/include/android/native_window.h b/native/include/android/native_window.h index ad03d0e..f3d7550 100644 --- a/native/include/android/native_window.h +++ b/native/include/android/native_window.h @@ -96,7 +96,7 @@ int32_t ANativeWindow_getFormat(ANativeWindow* window); * For all of these parameters, if 0 is supplied then the window's base * value will come back in force. */ -int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height); +int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format); /** * Lock the window's next drawing surface for writing. |