diff options
author | Chris Craik <ccraik@google.com> | 2015-04-28 11:45:59 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-05-26 17:53:16 -0700 |
commit | fca52b7583d1e5f5ff8ed06554875d2a30ef56fa (patch) | |
tree | e383a2db169421a722fa9c559dd01904e83fa504 /libs/hwui/DeferredDisplayList.cpp | |
parent | aa1cd25db72297f13539928e8aa45ba992f2f230 (diff) | |
download | frameworks_base-fca52b7583d1e5f5ff8ed06554875d2a30ef56fa.zip frameworks_base-fca52b7583d1e5f5ff8ed06554875d2a30ef56fa.tar.gz frameworks_base-fca52b7583d1e5f5ff8ed06554875d2a30ef56fa.tar.bz2 |
Use path intersection instead of saveLayer+mesh to mask projected ripples
bug:14297149
SaveLayer's performance cost is high, and proportional to the surface
being projected onto. Since ripples (even unbounded ones) are now
always projected to the arbitrary background content behind them, this
cost is especially important to avoid.
This removes the last semi-secret, saveLayer from the projected
ripple implementation.
Also fixes the HW test app to correctly demonstrate this projection
masking behavior.
Additionaly, alters PathTessellator to gracefully handle
counter-clockwise paths, and simplifies the work done by
ShadowTessellator to ensure all of its paths are counterclockwise.
Change-Id: Ibe9e12812bd10a774e20b1d444a140c368cbba8c
Diffstat (limited to 'libs/hwui/DeferredDisplayList.cpp')
-rw-r--r-- | libs/hwui/DeferredDisplayList.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/DeferredDisplayList.cpp b/libs/hwui/DeferredDisplayList.cpp index 6fcf958..b077a85 100644 --- a/libs/hwui/DeferredDisplayList.cpp +++ b/libs/hwui/DeferredDisplayList.cpp @@ -195,6 +195,7 @@ public: // Identical round rect clip state means both ops will clip in the same way, or not at all. // As the state objects are const, we can compare their pointers to determine mergeability if (lhs->mRoundRectClipState != rhs->mRoundRectClipState) return false; + if (lhs->mProjectionPathMask != rhs->mProjectionPathMask) return false; /* Clipping compatibility check * |