summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2017-05-01 22:17:36 -0700
committerSeigo Nonaka <nona@google.com>2017-05-09 04:10:07 +0000
commit373b15bda93c8b400c5e1271bc93cbef26af503f (patch)
treebb8ef292a69082853e596ff6ba9e0552b7d60142 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent718688f39bc6d760fac650ad2a76e490c2465e4b (diff)
Fix double bolding
resolveStyle increases minikinStyle's weight value based on Skia's style value. Since we compute Skia's style based on given weight value, we should not add extra bold weight to minikinStyle. This CL also fixes misunderstanding of base weight. The base weight is only used for computing weight relative to the weighted alias. Thus, base weight should not be updated except for createWeightAlias method. To be clear, this CL changes the function names but keeps the same semantics as before. Test: adb shell /data/nativetest/hwui_unit_tests/hwui_unit_tests Test: am instrument -w -e class android.graphics.cts.TypefaceTest\ android.graphics.cts/android.support.test.runner.AndroidJUnitRunner Bug: 37880319 Merged-In: Ied73189b11792fb062da46f45afd2db664e6ecb4 Change-Id: I82350a1bfb99ce198b955f127949e21bccccb1cb
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions