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

Unified Diff: ui/gfx/compositor/layer_unittest.cc

Issue 7996005: compositor: Fix compositor_unittests build on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 fcac2811d75b1521825a40ce46ad5f22974e865d..5257795d12dbc16dd96f5079b520ed134ef38dd8 100644
--- a/ui/gfx/compositor/layer_unittest.cc
+++ b/ui/gfx/compositor/layer_unittest.cc
@@ -34,7 +34,8 @@ class TestLayerDelegate : public LayerDelegate {
canvas->FillRectInt(colors_.at(color_index_), 0, 0,
contents.width(),
contents.height());
- color_index_ = ++color_index_ % colors_.size();
+ ++color_index_;
+ color_index_ = color_index_ % static_cast<int>(colors_.size());
sky 2011/09/22 22:01:05 (color_index_ + 1) % ...
tfarina 2011/09/22 22:13:29 Done.
}
private:

Powered by Google App Engine
This is Rietveld 408576698