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

Unified Diff: ui/gfx/canvas_skia_linux.cc

Issue 9021046: Pass const gfx::Rect& as the first parameter to FillRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more fix Created 8 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
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia_linux.cc
diff --git a/ui/gfx/canvas_skia_linux.cc b/ui/gfx/canvas_skia_linux.cc
index 7d95717b4fe7efae78b836dbd23d2e76abe7bacc..6525a2e455719410d9966c9191d499492a0e9eb4 100644
--- a/ui/gfx/canvas_skia_linux.cc
+++ b/ui/gfx/canvas_skia_linux.cc
@@ -115,7 +115,7 @@ void DrawStringContext::DrawWithHalo(const SkColor& text_color,
const SkColor& halo_color) {
gfx::Size size(bounds_.width() + 2, bounds_.height() + 2);
gfx::CanvasSkia text_canvas(size, false);
- text_canvas.FillRect(static_cast<SkColor>(0), gfx::Rect(gfx::Point(), size));
+ text_canvas.FillRect(gfx::Rect(gfx::Point(), size), static_cast<SkColor>(0));
{
skia::ScopedPlatformPaint scoped_platform_paint(text_canvas.sk_canvas());
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698