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

Unified Diff: ui/views/shadow_border.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase 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
Index: ui/views/shadow_border.cc
diff --git a/ui/views/shadow_border.cc b/ui/views/shadow_border.cc
index 1f19c019c12bfb9b587f5923e71d5daa5f4ba1cd..fa82d42c470dd22ed99c5558169a950b0547a4d0 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);

Powered by Google App Engine
This is Rietveld 408576698