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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 214603005: Remove explicit Skia save flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « skia/ext/analysis_canvas_unittest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia.cc
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc
index 1ad60ba2b04ce0f8051a95c89dedd4d51d3adf0c..fe6dccaec09bb29fd5dbdaf024abb831f4e7f78a 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -230,7 +230,7 @@ void Canvas::DrawStringRectWithShadows(const base::string16& text,
Rect clip_rect(text_bounds);
clip_rect.Inset(ShadowValue::GetMargin(shadows));
- canvas_->save(SkCanvas::kClip_SaveFlag);
+ canvas_->save();
ClipRect(clip_rect);
Rect rect(text_bounds);
@@ -424,7 +424,7 @@ void Canvas::DrawFadeTruncatingStringRectWithFlags(
rect.set_height(line_height);
render_text->SetDisplayRect(rect);
- canvas_->save(SkCanvas::kClip_SaveFlag);
+ canvas_->save();
ClipRect(display_rect);
render_text->Draw(this);
canvas_->restore();
« no previous file with comments | « skia/ext/analysis_canvas_unittest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698