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

Unified Diff: ui/views/shadow_border.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/round_rect_painter.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/shadow_border.cc
diff --git a/ui/views/shadow_border.cc b/ui/views/shadow_border.cc
index 3bc065b1adaa0cdd4ff037f5d891fb8cd1613075..50e143a3c0b1209280db0f65a6d685f93c4b4c9a 100644
--- a/ui/views/shadow_border.cc
+++ b/ui/views/shadow_border.cc
@@ -35,12 +35,12 @@ ShadowBorder::~ShadowBorder() {
// TODO(sidharthms): Re-painting a shadow looper on every paint call may yield
// poor performance. Ideally we should be caching the border to bitmaps.
void ShadowBorder::Paint(const views::View& view, gfx::Canvas* canvas) {
- SkPaint paint;
+ cc::PaintFlags paint;
std::vector<gfx::ShadowValue> shadows;
shadows.push_back(shadow_value_);
paint.setLooper(gfx::CreateShadowDrawLooper(shadows));
paint.setColor(SK_ColorTRANSPARENT);
- paint.setStrokeJoin(SkPaint::kRound_Join);
+ paint.setStrokeJoin(cc::PaintFlags::kRound_Join);
gfx::Rect bounds(view.size());
bounds.Inset(-gfx::ShadowValue::GetMargin(shadows));
canvas->DrawRect(bounds, paint);
« no previous file with comments | « ui/views/round_rect_painter.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698