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.h | |
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.h')
-rw-r--r-- | libs/hwui/DeferredDisplayList.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/DeferredDisplayList.h b/libs/hwui/DeferredDisplayList.h index 3d0ca6d..160c1ad 100644 --- a/libs/hwui/DeferredDisplayList.h +++ b/libs/hwui/DeferredDisplayList.h @@ -63,6 +63,7 @@ public: mat4 mMatrix; float mAlpha; const RoundRectClipState* mRoundRectClipState; + const ProjectionPathMask* mProjectionPathMask; }; class OpStatePair { |