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

Unified Diff: ui/gfx/canvas.cc

Issue 290333012: [Win] Draw the circular avatar programmatically rather than with a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing virtual keyword Created 6 years, 7 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/gfx/canvas.h ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index 6303d874abf5541ab268f950e9938117266d03ec..4518562cc5ecb1653debcd0af022b1c62747d3cb 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -184,7 +184,6 @@ void Canvas::SaveLayerAlpha(uint8 alpha) {
canvas_->saveLayerAlpha(NULL, alpha);
}
-
void Canvas::SaveLayerAlpha(uint8 alpha, const Rect& layer_bounds) {
SkRect bounds(RectToSkRect(layer_bounds));
canvas_->saveLayerAlpha(&bounds, alpha);
@@ -198,8 +197,8 @@ void Canvas::ClipRect(const Rect& rect) {
canvas_->clipRect(RectToSkRect(rect));
}
-void Canvas::ClipPath(const SkPath& path) {
- canvas_->clipPath(path);
+void Canvas::ClipPath(const SkPath& path, bool do_anti_alias) {
+ canvas_->clipPath(path, SkRegion::kIntersect_Op, do_anti_alias);
}
bool Canvas::IsClipEmpty() const {
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698