diff options
author | Mathias Agopian <mathias@google.com> | 2009-07-30 18:14:56 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-07-30 18:14:56 -0700 |
commit | 5b5c9144872b4e31ba5a041dce585a8ddbbe495d (patch) | |
tree | a87a028c1485452127f0ec9c0e8214d419fe6753 /include/ui/FramebufferNativeWindow.h | |
parent | 5e631892fb9ac4da83b70ba129ceb6a3f501bad9 (diff) | |
download | frameworks_base-5b5c9144872b4e31ba5a041dce585a8ddbbe495d.zip frameworks_base-5b5c9144872b4e31ba5a041dce585a8ddbbe495d.tar.gz frameworks_base-5b5c9144872b4e31ba5a041dce585a8ddbbe495d.tar.bz2 |
fixed some issues with the software renderer when surfaces are made current.
there was several issues:
- when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked
- when a surface was made current the 2nd time, it would not dequeue a new buffer
now, queue/dequeue are done when the surface is made current.
for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
Diffstat (limited to 'include/ui/FramebufferNativeWindow.h')
-rw-r--r-- | include/ui/FramebufferNativeWindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h index e72357a..cb9bf94 100644 --- a/include/ui/FramebufferNativeWindow.h +++ b/include/ui/FramebufferNativeWindow.h @@ -62,6 +62,7 @@ private: static int dequeueBuffer(android_native_window_t* window, android_native_buffer_t** buffer); static int lockBuffer(android_native_window_t* window, android_native_buffer_t* buffer); static int queueBuffer(android_native_window_t* window, android_native_buffer_t* buffer); + static int query(android_native_window_t* window, int what, int* value); framebuffer_device_t* fbDev; alloc_device_t* grDev; |