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

Unified Diff: ui/views/round_rect_painter.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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..9dc06203476f1599580d0a99ff69409368274019 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 "skia/ext/cdl_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;
+ CdlPaint paint;
paint.setColor(border_color_);
- paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStyle(CdlPaint::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