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

Unified Diff: ui/views/shadow_border.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/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 1f19c019c12bfb9b587f5923e71d5daa5f4ba1cd..6f28818744b742b936938713c267939e39b42e4c 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;
+ CdlPaint 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(CdlPaint::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