Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: ui/views/controls/label_unittest.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Update tests Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/label_unittest.cc
diff --git a/ui/views/controls/label_unittest.cc b/ui/views/controls/label_unittest.cc
index f2dc0a59b498e70655a2dcacfa42bb7ce79731fa..3219358fa7abd14c6b743a2704e6e8d5bfe13372 100644
--- a/ui/views/controls/label_unittest.cc
+++ b/ui/views/controls/label_unittest.cc
@@ -56,7 +56,9 @@ class TestLabel : public Label {
void SimulatePaint() {
SkBitmap bitmap;
SkColor color = SK_ColorTRANSPARENT;
- Paint(ui::CanvasPainter(&bitmap, bounds().size(), 1.f, color).context());
+ Paint(ui::PaintInfo(
+ ui::CanvasPainter(&bitmap, bounds().size(), 1.f, color).context(),
+ bounds().size()));
}
// View:

Powered by Google App Engine
This is Rietveld 408576698