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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 2610003002: Remove skia::SupportsPlatformPaint() (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
« no previous file with comments | « ui/native_theme/native_theme_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 46108aad1e5b86da7cdd1abf5949e10d4d7a477c..af86e79dd77b975ba092e0b63651dcc383a3be0a 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -285,10 +285,10 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
// UI features like scrollbars. However, we need to set up that buffer,
// and then read it back when it's done and blit it onto the screen.
- if (skia::SupportsPlatformPaint(canvas))
+ if (surface)
PaintDirect(canvas, surface, part, state, rect, extra);
else
- PaintIndirect(canvas, surface, part, state, rect, extra);
+ PaintIndirect(canvas, part, state, rect, extra);
}
NativeThemeWin::NativeThemeWin()
@@ -673,7 +673,6 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
}
void NativeThemeWin::PaintIndirect(SkCanvas* destination_canvas,
- HDC destination_hdc,
Part part,
State state,
const gfx::Rect& rect,
« no previous file with comments | « ui/native_theme/native_theme_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698