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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.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
Index: content/browser/renderer_host/render_widget_host_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc
index 4aaa302661fbbc84dc22d945dfba5de1f9920047..a279c88b7c323218b1acf088969713cc33c0e548 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -438,10 +438,10 @@ TEST_F(RenderWidgetHostTest, Background) {
// Create a checkerboard background to test with.
gfx::CanvasSkia canvas(gfx::Size(4, 4), true);
- canvas.FillRect(SK_ColorBLACK, gfx::Rect(0, 0, 2, 2));
- canvas.FillRect(SK_ColorWHITE, gfx::Rect(2, 0, 2, 2));
- canvas.FillRect(SK_ColorWHITE, gfx::Rect(0, 2, 2, 2));
- canvas.FillRect(SK_ColorBLACK, gfx::Rect(2, 2, 2, 2));
+ canvas.FillRect(gfx::Rect(0, 0, 2, 2), SK_ColorBLACK);
+ canvas.FillRect(gfx::Rect(2, 0, 2, 2), SK_ColorWHITE);
+ canvas.FillRect(gfx::Rect(0, 2, 2, 2), SK_ColorWHITE);
+ canvas.FillRect(gfx::Rect(2, 2, 2, 2), SK_ColorBLACK);
const SkBitmap& background =
canvas.sk_canvas()->getDevice()->accessBitmap(false);
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698