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

Unified Diff: ui/views/round_rect_painter.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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
« no previous file with comments | « ui/views/painter.cc ('k') | ui/views/shadow_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/round_rect_painter.cc
diff --git a/ui/views/round_rect_painter.cc b/ui/views/round_rect_painter.cc
index 7673b72a380ffba06b08b73d91183741522d2b02..20869c7f96ab9dbb96fb3785f2b3ff17ae13f94e 100644
--- a/ui/views/round_rect_painter.cc
+++ b/ui/views/round_rect_painter.cc
@@ -4,6 +4,7 @@
#include "ui/views/round_rect_painter.h"
+#include "cc/paint/paint_canvas.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/path.h"
#include "ui/gfx/skia_util.h"
@@ -23,11 +24,11 @@ gfx::Size RoundRectPainter::GetMinimumSize() const {
}
void RoundRectPainter::Paint(gfx::Canvas* canvas, const gfx::Size& size) {
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(border_color_);
- paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStyle(cc::PaintFlags::kStroke_Style);
paint.setStrokeWidth(kBorderWidth);
- paint.setFlags(SkPaint::kAntiAlias_Flag);
+ paint.setAntiAlias(true);
gfx::Rect rect(size);
rect.Inset(0, 0, kBorderWidth, kBorderWidth);
SkRect skia_rect = gfx::RectToSkRect(rect);
« no previous file with comments | « ui/views/painter.cc ('k') | ui/views/shadow_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698