summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-05-05 18:29:35 -0700
committerMathias Agopian <mathias@google.com>2009-05-05 18:29:35 -0700
commit9bd5da4db97fec7cdbe6e07870411c1fcaff4365 (patch)
treed7c369e3c2a0683e393f88a225d9de3ae6b2e094 /libs/ui/FramebufferNativeWindow.cpp
parentb51e18d59b6f8e44a5d3516fc3359c54fa913331 (diff)
get rid off unneeded flags
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r--libs/ui/FramebufferNativeWindow.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp
index 4e692e2c27a1..83b333f7e0e1 100644
--- a/libs/ui/FramebufferNativeWindow.cpp
+++ b/libs/ui/FramebufferNativeWindow.cpp
@@ -110,28 +110,7 @@ FramebufferNativeWindow::FramebufferNativeWindow()
fbDev->width, fbDev->height, strerror(-err));
}
- uint32_t flags = fbDev->flags & SURFACE_FLAG_MAPPED;
-
- /*
- * FIXME: SURFACE_FLAG_PRESERVE_CONTENT
- * how to implement this, there is no concept of preserve content in
- * the framebuffer, which just "posts" buffer.
- *
- * It looks like what we need is a way to know if the posted buffer can
- * be reused. But if so, why allocating 2 buffers?...
- *
- * should the lock/unlock calls take care of the copy-back?
- *
- *
- * In the end, the client wants to know if the backbuffer is preserved
- * though... it's complicated.
- *
- */
-
- //flags |= SURFACE_FLAG_PRESERVE_CONTENT;
-
-
- const_cast<uint32_t&>(android_native_window_t::flags) = flags;
+ const_cast<uint32_t&>(android_native_window_t::flags) = fbDev->flags;
const_cast<float&>(android_native_window_t::xdpi) = fbDev->xdpi;
const_cast<float&>(android_native_window_t::ydpi) = fbDev->ydpi;
const_cast<int&>(android_native_window_t::minSwapInterval) =