diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
commit | b8bdc427dc7802592bb2fea2b042f1db9667cd61 (patch) | |
tree | 9d1337b4b30ad85a14dd9307cedd0ce438c33f41 /content | |
parent | 07407b6976668863b6ebff63674bfc90da89967f (diff) | |
download | chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.zip chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.gz chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.bz2 |
Pass const gfx::Rect& as the first parameter to FillRect.
BUG=100898
R=pkasting@chromium.org
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9021046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/renderer_host/render_widget_host_unittest.cc | 8 | ||||
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_aura.cc | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc index 4aaa302..a279c88 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); diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc index a3ea5a2..727192c 100644 --- a/content/browser/renderer_host/render_widget_host_view_aura.cc +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc @@ -8,7 +8,6 @@ #include "content/browser/renderer_host/backing_store_skia.h" #include "content/browser/renderer_host/render_widget_host.h" #include "content/browser/renderer_host/web_input_event_aura.h" -#include "content/public/browser/native_web_keyboard_event.h" #include "content/common/gpu/gpu_messages.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" @@ -917,8 +916,8 @@ void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) { static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(), canvas); } else { - canvas->FillRect(SK_ColorWHITE, - gfx::Rect(gfx::Point(), window_->bounds().size())); + canvas->FillRect(gfx::Rect(gfx::Point(), window_->bounds().size()), + SK_ColorWHITE); } } |