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

Unified Diff: ui/gfx/shadow_util.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/gfx/shadow_util.cc
diff --git a/ui/gfx/shadow_util.cc b/ui/gfx/shadow_util.cc
index 04360f9b55c8e598a96f3b98524aeeb4dff77dcb..32e67e6ad7bfb8780cb6ea005c871de235211d26 100644
--- a/ui/gfx/shadow_util.cc
+++ b/ui/gfx/shadow_util.cc
@@ -36,8 +36,8 @@ class ShadowNineboxSource : public CanvasImageSource {
// CanvasImageSource overrides:
void Draw(Canvas* canvas) override {
- SkPaint paint;
- paint.setLooper(CreateShadowDrawLooperCorrectBlur(shadows_));
+ cc::PaintFlags flags;
+ flags.setLooper(CreateShadowDrawLooperCorrectBlur(shadows_));
Insets insets = -ShadowValue::GetMargin(shadows_);
gfx::Rect bounds(size());
bounds.Inset(insets);
@@ -49,8 +49,8 @@ class ShadowNineboxSource : public CanvasImageSource {
// Clipping alone is not enough --- due to anti aliasing there will still be
// some of the fill color in the rounded corners. We must make the fill
// color transparent.
- paint.setColor(SK_ColorTRANSPARENT);
- canvas->sk_canvas()->drawRRect(r_rect, paint);
+ flags.setColor(SK_ColorTRANSPARENT);
+ canvas->sk_canvas()->drawRRect(r_rect, flags);
}
private:

Powered by Google App Engine
This is Rietveld 408576698