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

Unified Diff: ui/gfx/canvas_skia_linux.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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: ui/gfx/canvas_skia_linux.cc
diff --git a/ui/gfx/canvas_skia_linux.cc b/ui/gfx/canvas_skia_linux.cc
index d5c5051343c285e0ce01be1e4d28f122b1b12820..22dceef30242c2f6b1ebe849b99897c3acbb0556 100644
--- a/ui/gfx/canvas_skia_linux.cc
+++ b/ui/gfx/canvas_skia_linux.cc
@@ -118,8 +118,9 @@ void DrawStringContext::Draw(const SkColor& text_color) {
void DrawStringContext::DrawWithHalo(const SkColor& text_color,
const SkColor& halo_color) {
gfx::CanvasSkia text_canvas(bounds_.width() + 2, bounds_.height() + 2, false);
- text_canvas.FillRectInt(static_cast<SkColor>(0),
- 0, 0, bounds_.width() + 2, bounds_.height() + 2);
+ text_canvas.FillRect(
+ static_cast<SkColor>(0),
Peter Kasting 2011/10/27 19:17:29 Nit: OK to leave this on previous line
tfarina 2011/10/27 20:46:03 Done.
+ gfx::Rect(0, 0, bounds_.width() + 2, bounds_.height() + 2));
{
skia::ScopedPlatformPaint scoped_platform_paint(text_canvas.sk_canvas());

Powered by Google App Engine
This is Rietveld 408576698