diff options
author | Mike Reed <reed@google.com> | 2019-05-01 15:53:36 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2019-05-01 15:53:40 -0400 |
commit | c9b5a972712b5879021c12ad6042ea40584893c7 (patch) | |
tree | cde169adc2ce82506da712e5c988da330b74d344 /libs/hwui/tests | |
parent | fa5180edff5cf519988d5e93db23465e673920d0 (diff) |
don't use legacy postTranslate255
Test: make
Change-Id: I040dffb99d540e8c6989a2bb1b5bcb70cc1a257e
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r-- | libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp b/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp index 06205f67f20a..e60bd5fae198 100644 --- a/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp +++ b/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp @@ -56,7 +56,7 @@ private: // Simple scale/translate case where R, G, and B are all treated equivalently SkColorMatrix cm; cm.setScale(1.1f, 1.1f, 1.1f, 0.5f); - cm.postTranslate255(5.0f, 5.0f, 5.0f, 10.0f); + cm.postTranslate(5.0f/255, 5.0f/255, 5.0f/255, 10.0f/255); paint.setColorFilter(SkColorFilters::Matrix(cm)); |