mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
rename obsolete SkColor.h macro (#5175)
change SkColorSetARGBInline to SkColorSetARGB. SkColorSetARGBInline is deprecated and will be deleted from Skia.
This commit is contained in:
parent
d0c99220fd
commit
f045500389
@ -38,7 +38,7 @@ void DrawCheckerboard(SkCanvas* canvas, const SkRect& rect) {
|
||||
canvas->clipRect(rect);
|
||||
|
||||
auto checkerboard_color =
|
||||
SkColorSetARGBInline(64, rand() % 256, rand() % 256, rand() % 256);
|
||||
SkColorSetARGB(64, rand() % 256, rand() % 256, rand() % 256);
|
||||
|
||||
DrawCheckerboard(canvas, checkerboard_color, 0x00000000, 12);
|
||||
canvas->restore();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user