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

Unified Diff: cc/test/tiled_layer_test_common.h

Issue 567743003: 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
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 f7e01584404cabc86d9ea3b467189006adbd193e..f0aae964b955c89b62c2f34306c39971158cacc2 100644
--- a/cc/test/tiled_layer_test_common.h
+++ b/cc/test/tiled_layer_test_common.h
@@ -55,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; }
@@ -77,6 +80,7 @@ class FakeLayerUpdater : public LayerUpdater {
gfx::Rect rect_to_invalidate_;
gfx::Rect last_update_rect_;
gfx::Rect opaque_paint_rect_;
+ float last_contents_width_scale_;
scoped_refptr<FakeTiledLayer> layer_;
DISALLOW_COPY_AND_ASSIGN(FakeLayerUpdater);

Powered by Google App Engine
This is Rietveld 408576698