From b801624dc4f03c930ec35f406f07fa5fd8f65dd9 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 27 Oct 2010 18:57:51 -0700 Subject: 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 --- libs/ui/Region.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 12db90885c..1994f6a432 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; -- cgit v1.2.3-59-g8ed1b