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

Unified Diff: ui/app_list/views/search_box_view.cc

Issue 2716213002: ui: Fix cc/paint skia type mismatches (Closed)
Patch Set: Created 3 years, 10 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/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index d4284b8b441485cee8b94a804798b278517738fb..2d70b80eca8c6e74651189199f843f1795272b50 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -58,10 +58,10 @@ class SearchBoxBackground : public views::Background {
void Paint(gfx::Canvas* canvas, views::View* view) const override {
gfx::Rect bounds = view->GetContentsBounds();
- SkPaint paint;
- paint.setFlags(SkPaint::kAntiAlias_Flag);
- paint.setColor(kSearchBoxBackground);
- canvas->DrawRoundRect(bounds, kBackgroundBorderCornerRadius, paint);
+ cc::PaintFlags flags;
+ flags.setAntiAlias(true);
+ flags.setColor(kSearchBoxBackground);
+ canvas->DrawRoundRect(bounds, kBackgroundBorderCornerRadius, flags);
}
DISALLOW_COPY_AND_ASSIGN(SearchBoxBackground);

Powered by Google App Engine
This is Rietveld 408576698