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

Unified Diff: ash/common/wm/overview/window_grid.cc

Issue 2717943002: Fix cc/paint skia type mismatches (Closed)
Patch Set: Rebase 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: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index c7c01134252fc9980dfe62fb35b2fc9c67dc5051..6ff8d5994eacbe1efd8356fadf4a3fba45c4b529 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -182,8 +182,8 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
path.addRoundRect(gfx::RectFToSkRect(border_rect_f), scaled_corner_radius,
scaled_corner_radius);
- SkPaint flags;
- flags.setStyle(SkPaint::kStroke_Style);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
flags.setStrokeWidth(1);
flags.setAntiAlias(true);
@@ -192,7 +192,7 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
SkPath fill_path;
Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
- flags.setStyle(SkPaint::kFill_Style);
+ flags.setStyle(cc::PaintFlags::kFill_Style);
flags.setColor(get_color());
canvas->sk_canvas()->drawPath(fill_path, flags);
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | chrome/browser/chromeos/display/overscan_calibrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698