summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-16 14:44:14 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-16 14:44:14 -0700
commit453b5ba21f1bf5ea6d046965a4b189c998e8cc37 (patch)
tree3fcf71b89e2889f7191f03eaf7e6c61f8c6ce464 /include
parent0712f24dbf14473cb55e5b609c3418610b77d406 (diff)
parentfe50b63f9b5b7e05754e3fba3ccce69b710dbafe (diff)
downloadframeworks_base-453b5ba21f1bf5ea6d046965a4b189c998e8cc37.zip
frameworks_base-453b5ba21f1bf5ea6d046965a4b189c998e8cc37.tar.gz
frameworks_base-453b5ba21f1bf5ea6d046965a4b189c998e8cc37.tar.bz2
am fe50b63f: am 7bb7e992: Merge change Ia8ac904d into eclair
Merge commit 'fe50b63f9b5b7e05754e3fba3ccce69b710dbafe' into eclair-mr2-plus-aosp * commit 'fe50b63f9b5b7e05754e3fba3ccce69b710dbafe': fix [2182249] [MR1] valgrind error in surface flinger
Diffstat (limited to 'include')
-rw-r--r--include/private/ui/RegionHelper.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/private/ui/RegionHelper.h b/include/private/ui/RegionHelper.h
index 926fddb..8d76533 100644
--- a/include/private/ui/RegionHelper.h
+++ b/include/private/ui/RegionHelper.h
@@ -86,7 +86,7 @@ public:
rasterizer(current);
}
}
- } while(!spannerInner.isDone());
+ } while(!spannerInner.isDone());
} while(!spanner.isDone());
}
@@ -220,18 +220,21 @@ private:
}
inline void prepare(int inside) {
- SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
- SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
- SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
- SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
if (inside == SpannerBase::lhs_before_rhs) {
+ SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
+ SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
SpannerBase::rhs_head = max_value;
SpannerBase::rhs_tail = max_value;
} else if (inside == SpannerBase::lhs_after_rhs) {
SpannerBase::lhs_head = max_value;
SpannerBase::lhs_tail = max_value;
+ SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
+ SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
} else {
- // use both spans
+ SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
+ SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
+ SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
+ SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
}
}