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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix 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: 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 047e620801a0f86182f75f24c39abbd7a3f730cd..50d3d7f65e29d36e9a7af1f3236c79285cd581ea 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -10,12 +10,12 @@
#include "content/browser/renderer_host/backing_store.h"
#include "content/browser/renderer_host/test_render_view_host.h"
#include "content/common/view_messages.h"
+#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
-#include "content/public/browser/content_browser_client.h"
#include "content/test/test_browser_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/keycodes/keyboard_codes.h"
@@ -428,10 +428,10 @@ TEST_F(RenderWidgetHostTest, Background) {
// Create a checkerboard background to test with.
gfx::CanvasSkia canvas(4, 4, true);
- canvas.FillRectInt(SK_ColorBLACK, 0, 0, 2, 2);
- canvas.FillRectInt(SK_ColorWHITE, 2, 0, 2, 2);
- canvas.FillRectInt(SK_ColorWHITE, 0, 2, 2, 2);
- canvas.FillRectInt(SK_ColorBLACK, 2, 2, 2, 2);
+ 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));
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