diff options
author | Mathias Agopian <mathias@google.com> | 2009-10-15 18:08:15 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-10-15 18:08:15 -0700 |
commit | 38a7fa2ae37236952e5fb0186fddb4f6da5990d8 (patch) | |
tree | 75fba8e01e6dfc6ac4afab2992de185b91edbf1c /include | |
parent | f7f46955f70db4fa032d6ee0bf6bef1d10a7a181 (diff) | |
download | frameworks_native-38a7fa2ae37236952e5fb0186fddb4f6da5990d8.zip frameworks_native-38a7fa2ae37236952e5fb0186fddb4f6da5990d8.tar.gz frameworks_native-38a7fa2ae37236952e5fb0186fddb4f6da5990d8.tar.bz2 |
fix [2182249] [MR1] valgrind error in surface flinger
Diffstat (limited to 'include')
-rw-r--r-- | include/private/ui/RegionHelper.h | 15 |
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; } } |