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

Unified Diff: ui/views/style/mac/combobox_background_mac.cc

Issue 1831883002: Use sk_sp-based shader creation APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/mac/combobox_background_mac.cc
diff --git a/ui/views/style/mac/combobox_background_mac.cc b/ui/views/style/mac/combobox_background_mac.cc
index 8c7ef8f93a35b9cab68a3d3599c37c85f7d5af18..31997b15b781c824649b60f9cc7ae002ba5ee1e3 100644
--- a/ui/views/style/mac/combobox_background_mac.cc
+++ b/ui/views/style/mac/combobox_background_mac.cc
@@ -31,12 +31,11 @@ void ComboboxBackgroundMac::Paint(gfx::Canvas* canvas, View* view) const {
if (!combobox->enabled())
state = ui::NativeTheme::kDisabled;
- skia::RefPtr<SkShader> shader =
+ SkPaint paint;
+ paint.setShader(
ui::NativeThemeMac::GetButtonBackgroundShader(
state,
- bounds.height());
- SkPaint paint;
- paint.setShader(shader.get());
+ bounds.height()));
paint.setStyle(SkPaint::kFill_Style);
paint.setAntiAlias(true);
« no previous file with comments | « ui/views/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698