commit | f28daffda50042c1b7cbfeb34b4d47741c6e21a8 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Fri Feb 04 00:59:34 2011 -0800 |
committer | Romain Guy <romainguy@google.com> | Fri Feb 04 00:59:34 2011 -0800 |
tree | ea4ec2648e7c585d35f26750d18cc1007ebd2052 | |
parent | e5e764ad0bb74d8c1405d018b4e0fe92d6554660 [diff] [blame] |
Empty the clip rect when intersection is empty. Bug #3410035 Change-Id: I5ceb80514d3b20c9ad230478549ad31ced403d53
diff --git a/libs/hwui/Snapshot.h b/libs/hwui/Snapshot.h index 595ad4e..bd70319 100644 --- a/libs/hwui/Snapshot.h +++ b/libs/hwui/Snapshot.h
@@ -150,6 +150,10 @@ break; case SkRegion::kIntersect_Op: clipped = clipRect->intersect(r); + if (!clipped) { + clipRect->setEmpty(); + clipped = true; + } break; case SkRegion::kUnion_Op: clipped = clipRect->unionWith(r);