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

Unified Diff: ui/views/widget/root_view.cc

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: Created 4 years, 1 month 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/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 63be235c909201f674fcef9120ff443845d11e02..73c9851b36e29f23806b562db4d9b23a1daec2e0 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -647,7 +647,7 @@ void RootView::VisibilityChanged(View* /*starting_from*/, bool is_visible) {
void RootView::OnPaint(gfx::Canvas* canvas) {
if (!layer() || !layer()->fills_bounds_opaquely())
- canvas->DrawColor(SK_ColorBLACK, SkXfermode::kClear_Mode);
+ canvas->DrawColor(SK_ColorBLACK, SkBlendMode::kClear);
View::OnPaint(canvas);
}

Powered by Google App Engine
This is Rietveld 408576698