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

Unified Diff: cc/test/tiled_layer_test_common.cc

Issue 590313004: Revert of Fix bad scaling in TiledLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/test/tiled_layer_test_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/tiled_layer_test_common.cc
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index 029eccde1ad9288ab083ce26f99d026476daef8b..3024cbd506a31638cbd52940c0bbf3e516af7b71 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -29,20 +29,16 @@
layer_->Update();
}
-FakeLayerUpdater::FakeLayerUpdater()
- : prepare_count_(0), update_count_(0), last_contents_width_scale_(0.f) {
-}
+FakeLayerUpdater::FakeLayerUpdater() : prepare_count_(0), update_count_(0) {}
FakeLayerUpdater::~FakeLayerUpdater() {}
-void FakeLayerUpdater::PrepareToUpdate(const gfx::Size& content_size,
- const gfx::Rect& paint_rect,
+void FakeLayerUpdater::PrepareToUpdate(const gfx::Rect& content_rect,
const gfx::Size& tile_size,
float contents_width_scale,
float contents_height_scale) {
prepare_count_++;
- last_update_rect_ = paint_rect;
- last_contents_width_scale_ = contents_width_scale;
+ last_update_rect_ = content_rect;
if (!rect_to_invalidate_.IsEmpty()) {
layer_->InvalidateContentRect(rect_to_invalidate_);
rect_to_invalidate_ = gfx::Rect();
« no previous file with comments | « cc/test/tiled_layer_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698