Merge "don't use legacy postTranslate255"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a18ca3ee0
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user