Make savelayer_* GM be 565 friendly
Change-Id: I0594d9e8d2495643a404bddee61d7f01c7c0103c Reviewed-on: https://skia-review.googlesource.com/7263 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
b3b24538e0
commit
52b346e34d
@ -22,7 +22,7 @@ static void do_draw(SkCanvas* canvas) {
|
||||
SkRandom rand;
|
||||
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
paint.setColor(rand.nextU() | (0xFF << 24));
|
||||
paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24)));
|
||||
canvas->drawRect({ 15, 15, 290, 40 }, paint);
|
||||
canvas->translate(0, 30);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user