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 2988e5e2a722a7b2cccace34bec50a1aad4173f9..72b61799031a8e9a4c8fdf8818b036f92ffc2b21 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 |