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

Unified Diff: chrome/browser/download/download_shelf.cc

Issue 771563003: use SkClipOps where we can, legacyClip where we need to rework Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/download/download_shelf.cc
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index c7337b959fb09f38ebd7bb10c7f95012171243b6..5506f66b4bffc5bb7fd3e50bb15afef8b0e706f1 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -140,7 +140,7 @@ void DownloadShelf::PaintCustomDownloadProgress(
SkIntToScalar(bounds.y() + image_size / 2));
// gfx::Canvas::ClipPath does not provide for anti-aliasing.
- canvas->sk_canvas()->clipPath(path, SkRegion::kIntersect_Op, true);
+ canvas->sk_canvas()->clipPath(path, kIntersect_SkClipOp, true);
}
canvas->DrawImageInt(foreground_image,
« no previous file with comments | « cc/resources/raster_source_helper.cc ('k') | content/browser/compositor/software_output_device_ozone_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698