summaryrefslogtreecommitdiff
path: root/libs/hwui/DamageAccumulator.cpp
AgeCommit message (Collapse)Author
2021-05-17Add support to toggle different shaderNader Jawad
behaviors Updated HWUI to toggle overscroll stretch implementation based on whether the device supports high end graphics or not Bug: 187718492 Test: manual Change-Id: I13a91a8861c07bec8af43268ba22d0f5b7060b4f
2021-05-11Add some more scenes, replace linear with uniformJohn Reck
Test: this Bug: 187718492 Change-Id: I171b5c15cd18645c2da1cffffa9635f83f8877e6
2021-05-10Add a linear variant of the stretch effectJohn Reck
Supports SurfaceViews & everything Test: setprop debug.hwui.stretch_mode 1 Bug: 187718492 Change-Id: I9a222fa4c1a40e80a74cdaf75becb9524cbeed9b
2021-05-07Updated HWUI to calculate the stretch bounds for a surfaceNader Jawad
Added logic to StretchEffect to be able to calculate the stretched position of a pixel on an input texture based on the current stretch parameters. Updated shader to leverage linear easing instead of cubic in order to have a reversible method that can be used to map input textures to the corresponding stretch position. Bug: 179047472 Test: manual Change-Id: Id32afcf0df1cca03e68ac0c594d307a1090264f2
2021-05-03Update hole punch logic in HWUINader Jawad
--Updated HWUI holepunch logic for SurfaceView to also apply the stretch to the hole punch --Updated RenderNode callbacks to also include an offset from the ancestor RenderNode that also has a stretch configured on it --Added new test activity to verify hole punch logic Bug: 179047472 Test: manual Change-Id: Ibbaf8248a31839ba9dc352ecb9fef54e1276918e
2021-02-17Wire up SurfaceView stretch effectJohn Reck
Bug: 179047472 Test: StretchySurfaceViewActivity Change-Id: I7f3d582cc66fb732a557e9332edc6d186db2335c
2019-08-29use rect version of join, the other is deprecatedMike Reed
Test: make Change-Id: I29f4ff6cea209ac5c053a525ff06cd1bfea6c9c0
2019-06-26Fix damage calculation for animation matrixJohn Reck
Fixes: 111094270 Test: demo app from bug Change-Id: If434ade19fa103fabbe64f483193d61cb6f1b204
2017-11-03Format the world (or just HWUI)John Reck
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-01-09Replace cutils/log.h and log/logger.h with log/log.hMark Salyzyn
Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
2016-02-11Fix all LA memory leaks forever!John Reck
Bug: 27072626 Or at least fix this one and make it harder to leak going forward. static_asserts are cool, use them liberally Also makes allocation via LA (slightly) faster by fixing create* variants to use rvalue references & std::forward, preventing an accidental pass-by-value Change-Id: I18fd696a93dd6ea49c8d8c587d4c8bee56dbfdf5
2016-02-11Revert "Fix all LA memory leaks forever!"John Reck
This reverts commit 499d83f21e7ffb687788bba1668b05fe38f6ebaf. Change-Id: Ia893ae16ebbeae68e49cd13a20587104b73d39a0
2016-02-10Fix all LA memory leaks forever!John Reck
Bug: 27072626 Or at least fix this one and make it harder to leak going forward. static_asserts are cool, use them liberally Also makes allocation via LA (slightly) faster by fixing create* variants to use rvalue references & std::forward, preventing an accidental pass-by-value Change-Id: I5e0e36e72c6dd93324194ebf9a95f8204f05f261
2015-08-12Fix bug in calculating perspective damageJohn Reck
Change-Id: Iacab98cf3525f891012087acf85e4205b5e8f0d0
2015-01-06Merge frameworks/base changes from master-skia to master.Mike Reed
Adaptations to changes in Skia upstream since Oct 2014. (https://code.google.com/p/skia/issues/detail?id=2377) cbb922d use new roundOut signature 77082de Call SkColorTable::readColors(). 5456ab1 Handle the result of SkMatrix::asAffine. 25cfc78 Remove dependence on SK_LEGACY_PICTURE_SIZE_API. BUG:18468293 Change-Id: I5a4d274e854298843891410b1ffd5e24f038b88a
2015-01-05Add overrides and switch to nullptr keyword for all filesChris Craik
Adds remaining missing overrides and nullptr usages, missed due to an extreme failure in tool usage. Change-Id: I56abd72975a3999ad13330003c348db40f59aebf
2014-08-21Fix layer shadow transform crashChris Craik
bug:17180252 Change-Id: Ia648b8c98a217a3a4973917bf255d1397802cbbe
2014-08-15Define shadow casting behavior within layersChris Craik
bug:15860114 Savelayers and HW layers both now support shadow casting. For save layers, the light source should always be correct, for HW layers, the light source position is set when the layer is created, and updated when it is resized. Change-Id: Ie85567dd43c2bb0a0b08fd0bd4db41efa793ac2b
2014-08-08Fix damage for layers for projection receiversJohn Reck
Bug: 16880228 Change-Id: I59ab760a21f49cc2cac0d8936b173cff292e6114
2014-06-18Fix dirty calculation for layer updatesJohn Reck
Bug: 15682142 Defer early return of alpha <= 0 for damage accumulation until popTransform() so that layer updates will be performed regardless of alpha Change-Id: Ifb94dd3ed2d96d610e6f2f3071933903016273a5
2014-06-17Merge "Make sure the root node has a type"John Reck
2014-06-17Make sure the root node has a typeJohn Reck
Bug: 15686491 Change-Id: I4bd64a6470dd704740e99d21cfdbe84805961401
2014-06-17Handle Z in DAJohn Reck
Bug: 15671775 Change-Id: I33c7a70e78ef523ffd03165fb6c39d8e04d04f1f
2014-06-12Move LayerType to RenderNodeJohn Reck
Change-Id: Icb79a5015cb0362b1f3a66d09007450730135a97
2014-06-12Fix DA bugsJohn Reck
* Now aware of transform of DrawDisplayListOp * Supports projection Bug: 15539677 Bug: 15506680 Change-Id: Ic16f482cd48c3add12e49eca529281be12b93491
2014-06-04Even FASTER damage calculations!John Reck
* Now with more native! * Less matrix math thanks to bulk-property-update support! * Zero JNI on the View.damageInParent() path! * Fully aware of RT-driven animators! * Likely full of new and exciting bugs! * But it also fixes at least 1 existing invalidate bug! Change-Id: Ie0773f85a60850ff2668370c58defef2e8aa079f