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 97576173985040d436e83460ac3503c030aeb3fa..56b304955ee88fa8ab5eab4db8e60987f358ee9c 100644 |
--- a/cc/test/tiled_layer_test_common.cc |
+++ b/cc/test/tiled_layer_test_common.cc |
@@ -139,4 +139,19 @@ cc::IntSize FakeTiledLayerWithScaledBounds::contentBounds() const |
return m_forcedContentBounds; |
} |
+float FakeTiledLayerWithScaledBounds::contentsScaleX() const |
+{ |
+ return static_cast<float>(m_forcedContentBounds.width()) / bounds().width(); |
+} |
+ |
+float FakeTiledLayerWithScaledBounds::contentsScaleY() const |
+{ |
+ return static_cast<float>(m_forcedContentBounds.height()) / bounds().height(); |
+} |
+ |
+void FakeTiledLayerWithScaledBounds::setContentsScale(float) |
+{ |
+ NOTREACHED(); |
+} |
+ |
} // namespace |