From 28ce94a4ffc7576f40776d212f1ada79fafaa061 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 31 May 2013 11:38:03 -0700 Subject: Overdraw avoidance and merging of clipped ops bug:8951267 If an opaque op, or group of opaque ops covers the invalidate region, skip draw operations that precede it. Clipped operations may now be merged, but only if they share a clipRect - this is a very case for e.g. ListView, where all background elements may now be a part of the same MergingDrawBatch. It is this more aggressive merging that groups together clipped background elements in the ListView case, enabling the overdraw avoidance skipping the window background. Change-Id: Ib0961977e272c5ac37f59e4c67d828467422d259 --- libs/hwui/Rect.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/Rect.h') diff --git a/libs/hwui/Rect.h b/libs/hwui/Rect.h index 689fe6c0..87c6c10 100644 --- a/libs/hwui/Rect.h +++ b/libs/hwui/Rect.h @@ -24,6 +24,10 @@ namespace android { namespace uirenderer { +#define RECT_STRING "%4.2f %4.2f %4.2f %4.2f" +#define RECT_ARGS(r) \ + (r).left, (r).top, (r).right, (r).bottom + /////////////////////////////////////////////////////////////////////////////// // Structs /////////////////////////////////////////////////////////////////////////////// -- cgit v1.1