summaryrefslogtreecommitdiffstats
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-07-01 13:12:07 -0700
committerJamie Gennis <jgennis@google.com>2011-07-11 12:31:45 -0700
commitbee205fd58a27c10a0895de5339e76025d429d2b (patch)
tree51be111dd09436e5a437b4781310d3dcc794779d /libs/ui/FramebufferNativeWindow.cpp
parent6a90b3a3d78b5e3b03898b6f199f22ca96040629 (diff)
downloadframeworks_native-bee205fd58a27c10a0895de5339e76025d429d2b.zip
frameworks_native-bee205fd58a27c10a0895de5339e76025d429d2b.tar.gz
frameworks_native-bee205fd58a27c10a0895de5339e76025d429d2b.tar.bz2
EGL: fix the ANativeWindow size/fmt override
This change fixes how the Android EGL layer overrides the size and format of an ANativeWindow in eglCreateWindowSurface. The new behavior is to leave the size untouched when overriding the format. The previous behavior was to reset the ANativeWindow to use the default size set by the ANativeWindow implementation. It also adds two new 'perform' methods to the ANativeWindow interface: set_buffers_dimensions and set_buffers_format, and redefines the behavior of set_buffers_geometry to be the combination of these two new methods. Additionally, this change adds an error check for the return value of the new native_window_set_buffers_format call, which required adding a (stub) handler for to FramebufferNativeWindow. Change-Id: I805c7ccd8d4730dfb132d10d8bc3fb058a0b9df1
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r--libs/ui/FramebufferNativeWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp
index 4393504..9c10c75 100644
--- a/libs/ui/FramebufferNativeWindow.cpp
+++ b/libs/ui/FramebufferNativeWindow.cpp
@@ -299,6 +299,7 @@ int FramebufferNativeWindow::perform(ANativeWindow* window,
{
switch (operation) {
case NATIVE_WINDOW_SET_USAGE:
+ case NATIVE_WINDOW_SET_BUFFERS_FORMAT:
case NATIVE_WINDOW_CONNECT:
case NATIVE_WINDOW_DISCONNECT:
break;