Index: cc/test/tiled_layer_test_common.h |
diff --git a/cc/test/tiled_layer_test_common.h b/cc/test/tiled_layer_test_common.h |
index 55250f5a79ae419cc51e272ffc4577370f08d5c2..26346212af5b9653bc3f0fd21cf83f059113465f 100644 |
--- a/cc/test/tiled_layer_test_common.h |
+++ b/cc/test/tiled_layer_test_common.h |
@@ -44,7 +44,8 @@ class FakeLayerUpdater : public LayerUpdater { |
virtual scoped_ptr<LayerUpdater::Resource> CreateResource( |
PrioritizedResourceManager* resource) OVERRIDE; |
- virtual void PrepareToUpdate(const gfx::Rect& content_rect, |
+ virtual void PrepareToUpdate(const gfx::Size& content_size, |
+ const gfx::Rect& paint_rect, |
const gfx::Size& tile_size, |
float contents_width_scale, |
float contents_height_scale) OVERRIDE; |
@@ -54,6 +55,9 @@ class FakeLayerUpdater : public LayerUpdater { |
// Last rect passed to PrepareToUpdate(). |
gfx::Rect last_update_rect() const { return last_update_rect_; } |
+ // Value of |contents_width_scale| last passed to PrepareToUpdate(). |
+ float last_contents_width_scale() const { return last_contents_width_scale_; } |
+ |
// Number of times PrepareToUpdate has been invoked. |
int prepare_count() const { return prepare_count_; } |
void ClearPrepareCount() { prepare_count_ = 0; } |
@@ -71,6 +75,7 @@ class FakeLayerUpdater : public LayerUpdater { |
int update_count_; |
gfx::Rect rect_to_invalidate_; |
gfx::Rect last_update_rect_; |
+ float last_contents_width_scale_; |
scoped_refptr<FakeTiledLayer> layer_; |
DISALLOW_COPY_AND_ASSIGN(FakeLayerUpdater); |