diff options
author | Mike Reed <reed@google.com> | 2019-07-25 12:28:29 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2019-07-29 13:38:35 -0400 |
commit | c2dbc03acc61e3d4303afbbc63c8e7144f617846 (patch) | |
tree | 2f1f794729a307af6ecefb7586148a09d9ad33a9 /libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp | |
parent | 0cce030acf2e180dcf205ccf236854d0d4a59fbc (diff) |
pass Paint not SkPaint to Canvas
Test: cts
Change-Id: I9a3314bc3f221b6e884c8c84d7b0241f7c5be600
Diffstat (limited to 'libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp')
-rw-r--r-- | libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp b/libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp index 8bd804e75674..57a260c8d234 100644 --- a/libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp +++ b/libs/hwui/tests/common/scenes/SimpleGradientAnimation.cpp @@ -51,7 +51,7 @@ private: [width, height](RenderProperties& props, Canvas& canvas) { float pos[] = {0, 1}; SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; - SkPaint paint; + Paint paint; // overdraw several times to emphasize shader cost for (int i = 0; i < 10; i++) { // use i%2 start position to pick 2 color combo with black in it |