diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-07-01 18:44:46 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-07-01 18:44:46 -0700 |
commit | 8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb (patch) | |
tree | 3967411cd4a849e239a6c79425e90de101c0caf4 /native/android/native_window.cpp | |
parent | f520411a35db5248934a4b50859ca72e3f865593 (diff) | |
download | frameworks_base-8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb.zip frameworks_base-8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb.tar.gz frameworks_base-8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb.tar.bz2 |
Get to the point of being able to do native drawing.
A little cleanup.
Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
Diffstat (limited to 'native/android/native_window.cpp')
-rw-r--r-- | native/android/native_window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp index 7a6eb6d..448cbfc 100644 --- a/native/android/native_window.cpp +++ b/native/android/native_window.cpp @@ -39,3 +39,9 @@ int32_t ANativeWindow_getHeight(ANativeWindow* window) { int32_t ANativeWindow_getFormat(ANativeWindow* window) { return getWindowProp(window, NATIVE_WINDOW_FORMAT); } + +int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, + int32_t height, int32_t format) { + native_window_set_buffers_geometry(window, width, height, format); + return 0; +} |