summaryrefslogtreecommitdiffstats
path: root/libs/ui
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-10-27 18:57:51 -0700
committerRomain Guy <romainguy@google.com>2010-11-02 16:17:23 -0700
commitb801624dc4f03c930ec35f406f07fa5fd8f65dd9 (patch)
treee1f8667650d30758b7a21f46d619576279e1c721 /libs/ui
parentd6a3cddba58500c6ae9427a343b035de0ef43251 (diff)
downloadframeworks_native-b801624dc4f03c930ec35f406f07fa5fd8f65dd9.zip
frameworks_native-b801624dc4f03c930ec35f406f07fa5fd8f65dd9.tar.gz
frameworks_native-b801624dc4f03c930ec35f406f07fa5fd8f65dd9.tar.bz2
Optimize FBO drawing with regions.
This optimization is currently disabled until Launcher is modified to take advantage of it. The optimization can be enabled by turning on RENDER_LAYERS_AS_REGIONS in the OpenGLRenderer.h file. Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
Diffstat (limited to 'libs/ui')
-rw-r--r--libs/ui/Region.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp
index 12db908..1994f6a 100644
--- a/libs/ui/Region.cpp
+++ b/libs/ui/Region.cpp
@@ -289,7 +289,7 @@ private:
void flushSpan() {
bool merge = false;
if (tail-head == ssize_t(span.size())) {
- Rect const* p = cur;
+ Rect const* p = span.editArray();
Rect const* q = head;
if (p->top == q->bottom) {
merge = true;