From c9b5a972712b5879021c12ad6042ea40584893c7 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 1 May 2019 15:53:36 -0400 Subject: [PATCH] don't use legacy postTranslate255 Test: make Change-Id: I040dffb99d540e8c6989a2bb1b5bcb70cc1a257e --- libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp b/libs/hwui/tests/common/scenes/SimpleColorMatrixAnimation.cpp index 06205f67f20ac..e60bd5fae198f 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));