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 81975ca12374e44b86735b549e59331c264a635c..0b37319d27a995f6b90a0cb60005d75bf4015b22 100644 |
--- a/cc/test/tiled_layer_test_common.cc |
+++ b/cc/test/tiled_layer_test_common.cc |
@@ -29,7 +29,9 @@ void FakeLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, |
layer_->Update(); |
} |
-FakeLayerUpdater::FakeLayerUpdater() : prepare_count_(0), update_count_(0) {} |
+FakeLayerUpdater::FakeLayerUpdater() |
+ : prepare_count_(0), update_count_(0), last_contents_width_scale_(0.f) { |
+} |
FakeLayerUpdater::~FakeLayerUpdater() {} |
@@ -40,6 +42,7 @@ void FakeLayerUpdater::PrepareToUpdate(const gfx::Rect& content_rect, |
gfx::Rect* resulting_opaque_rect) { |
prepare_count_++; |
last_update_rect_ = content_rect; |
+ last_contents_width_scale_ = contents_width_scale; |
if (!rect_to_invalidate_.IsEmpty()) { |
layer_->InvalidateContentRect(rect_to_invalidate_); |
rect_to_invalidate_ = gfx::Rect(); |