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

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: 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
« no previous file with comments | « ui/gfx/canvas_skia_linux.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..54ee2f48eeb8ba672ca91b0166584e0c1cbcad50 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_[color_index_],
+ gfx::Rect(gfx::Point(), paint_size_));
color_index_ = (color_index_ + 1) % static_cast<int>(colors_.size());
}
virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE {
« no previous file with comments | « ui/gfx/canvas_skia_linux.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698