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

Unified Diff: ui/gfx/canvas.cc

Issue 2799213003: Remove deprecated functions from Canvas in favor of the RectF version. (Closed)
Patch Set: Remove deprecated functions from Canvas in favor of the RectF version Created 3 years, 8 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') | no next file » | 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 b2d90aec4189b22975350b0e57b77b7da60858c9..7a206c5e9c6a64744e64d63f40240f306d910388 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -115,10 +115,6 @@ ImageSkiaRep Canvas::ExtractImageRep() const {
return ImageSkiaRep(result, image_scale_);
}
-void Canvas::DrawDashedRect(const Rect& rect, SkColor color) {
- DrawDashedRect(RectF(rect), color);
-}
-
void Canvas::DrawDashedRect(const RectF& rect, SkColor color) {
if (rect.IsEmpty())
return;
@@ -242,18 +238,10 @@ void Canvas::FillRect(const Rect& rect, SkColor color, SkBlendMode mode) {
DrawRect(rect, flags);
}
-void Canvas::DrawRect(const Rect& rect, SkColor color) {
- DrawRect(RectF(rect), color);
-}
-
void Canvas::DrawRect(const RectF& rect, SkColor color) {
DrawRect(rect, color, SkBlendMode::kSrcOver);
}
-void Canvas::DrawRect(const Rect& rect, SkColor color, SkBlendMode mode) {
- DrawRect(RectF(rect), color, mode);
-}
-
void Canvas::DrawRect(const RectF& rect, SkColor color, SkBlendMode mode) {
cc::PaintFlags flags;
flags.setColor(color);
« no previous file with comments | « ui/gfx/canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698