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

Unified Diff: ui/gfx/compositor/layer_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: 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/compositor/layer_unittest.cc
diff --git a/ui/gfx/compositor/layer_unittest.cc b/ui/gfx/compositor/layer_unittest.cc
index ae63345959994d4b5c8227df728384659c7f0ca6..286a0d038a53ee43e0577b63aab97760e9be5dce 100644
--- a/ui/gfx/compositor/layer_unittest.cc
+++ b/ui/gfx/compositor/layer_unittest.cc
@@ -127,9 +127,8 @@ class TestLayerDelegate : public LayerDelegate {
virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE {
SkBitmap contents = canvas->AsCanvasSkia()->ExtractBitmap();
paint_size_ = gfx::Size(contents.width(), contents.height());
- canvas->FillRectInt(colors_.at(color_index_), 0, 0,
- contents.width(),
- contents.height());
+ canvas->FillRect(colors_.at(color_index_),
Peter Kasting 2011/10/27 19:17:29 Nit: While here, change at() to []
tfarina 2011/10/27 20:46:03 Done.
+ gfx::Rect(gfx::Point(), paint_size_));
color_index_ = (color_index_ + 1) % static_cast<int>(colors_.size());
}
virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698