diff options
Diffstat (limited to 'cc/test/tiled_layer_test_common.cc')
-rw-r--r-- | cc/test/tiled_layer_test_common.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc index 9757617..56b3049 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 |