Chromium Code Reviews| Index: ui/views/controls/label_unittest.cc |
| diff --git a/ui/views/controls/label_unittest.cc b/ui/views/controls/label_unittest.cc |
| index 094c3365a739fed6ea7abdc1901c3b6e081450ff..1cdfd1b30e91faaf0b841c4232568cf44eb7e097 100644 |
| --- a/ui/views/controls/label_unittest.cc |
| +++ b/ui/views/controls/label_unittest.cc |
| @@ -52,8 +52,9 @@ class TestLabel : public Label { |
| int schedule_paint_count() const { return schedule_paint_count_; } |
| void SimulatePaint() { |
| - gfx::Canvas canvas(bounds().size(), 1.0, false /* is_opaque */); |
| - Paint(ui::CanvasPainter(&canvas, 1.f).context()); |
| + SkBitmap bitmap; |
| + SkColor color(SK_ColorTRANSPARENT); |
|
tapted
2017/02/14 23:34:07
color =
|
| + Paint(ui::CanvasPainter(&bitmap, bounds().size(), 1.f, color).context()); |
| } |
| // View: |