Use RoundRect clipping for circle reveal animation
bug:16630975
Also, remove inverse clipping feature from reveal animator.
Change-Id: I770a4eb48cd123b0ca0f39d16a0f3eefd1be3653
diff --git a/libs/hwui/Snapshot.h b/libs/hwui/Snapshot.h
index 5426e89..98e2440 100644
--- a/libs/hwui/Snapshot.h
+++ b/libs/hwui/Snapshot.h
@@ -57,8 +57,8 @@
Matrix4 matrix;
Rect dangerRects[4];
- Rect outlineInnerRect;
- float outlineRadius;
+ Rect innerRect;
+ float radius;
};
/**
@@ -164,7 +164,7 @@
/**
* Sets (and replaces) the current clipping outline
*/
- void setClippingOutline(LinearAllocator& allocator, const Outline* outline);
+ void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, float radius);
/**
* Indicates whether this snapshot should be ignored. A snapshot