diff options
author | ztenghui <ztenghui@google.com> | 2014-10-01 23:41:00 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-01 23:41:00 +0000 |
commit | 5f243860a79ec158fc9f769bda7202dfd202da59 (patch) | |
tree | 51a26491c27c533d1fce6152fc0b4861c56915f3 | |
parent | c088ecc390917f82cdd4898533e892070316350c (diff) | |
parent | 9ad17521ac073562991cddb78f14d6df8d5fd05a (diff) | |
download | frameworks_base-5f243860a79ec158fc9f769bda7202dfd202da59.zip frameworks_base-5f243860a79ec158fc9f769bda7202dfd202da59.tar.gz frameworks_base-5f243860a79ec158fc9f769bda7202dfd202da59.tar.bz2 |
am 9ad17521: am f9033048: Merge "+ correcting shadow visual appearance (b/17610926)" into lmp-dev
* commit '9ad17521ac073562991cddb78f14d6df8d5fd05a':
+ correcting shadow visual appearance (b/17610926)
-rw-r--r-- | core/res/res/values/dimens.xml | 4 | ||||
-rw-r--r-- | libs/hwui/ShadowTessellator.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 824ed9e..26d3133 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -412,7 +412,7 @@ <dimen name="light_y">-200dp</dimen> <dimen name="light_z">800dp</dimen> <dimen name="light_radius">800dp</dimen> - <item type="dimen" format="float" name="ambient_shadow_alpha">0.047</item> - <item type="dimen" format="float" name="spot_shadow_alpha">0.098</item> + <item type="dimen" format="float" name="ambient_shadow_alpha">0.075</item> + <item type="dimen" format="float" name="spot_shadow_alpha">0.15</item> </resources> diff --git a/libs/hwui/ShadowTessellator.cpp b/libs/hwui/ShadowTessellator.cpp index 35cc7a4..c1ffa0a 100644 --- a/libs/hwui/ShadowTessellator.cpp +++ b/libs/hwui/ShadowTessellator.cpp @@ -37,7 +37,7 @@ void ShadowTessellator::tessellateAmbientShadow(bool isCasterOpaque, // A bunch of parameters to tweak the shadow. // TODO: Allow some of these changable by debug settings or APIs. - float heightFactor = 1.0f / 86; + float heightFactor = 1.0f / 128; const float geomFactor = 64; Caches& caches = Caches::getInstance(); |