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

Unified Diff: ui/app_list/views/speech_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/speech_view.cc
diff --git a/ui/app_list/views/speech_view.cc b/ui/app_list/views/speech_view.cc
index 7cb354aa659e896967d3684180000718a9501ffb..b8fa7f551faf96451e121bc16cc2e3cca68cd883 100644
--- a/ui/app_list/views/speech_view.cc
+++ b/ui/app_list/views/speech_view.cc
@@ -67,11 +67,11 @@ SoundLevelIndicator::SoundLevelIndicator() {}
SoundLevelIndicator::~SoundLevelIndicator() {}
void SoundLevelIndicator::OnPaint(gfx::Canvas* canvas) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
- paint.setColor(kSoundLevelIndicatorColor);
- paint.setAntiAlias(true);
- canvas->DrawCircle(bounds().CenterPoint(), width() / 2, paint);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setColor(kSoundLevelIndicatorColor);
+ flags.setAntiAlias(true);
+ canvas->DrawCircle(bounds().CenterPoint(), width() / 2, flags);
}
// MicButton is an image button with a circular hit test mask.
« no previous file with comments | « ui/app_list/views/search_box_view.cc ('k') | ui/gfx/BUILD.gn » ('j') | ui/gfx/canvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698