Index: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
diff --git a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
index 07bf87d95708e9c26ccfa2141f60805761a0e0e6..d8dfccd1af88abc579fdc99de93c9028761ea071 100644 |
--- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
+++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp |
@@ -87,6 +87,13 @@ void WebLayerTreeViewImplForTesting::setViewportSize(const WebSize& deviceViewpo |
m_layerTreeHost->GetLayerTree()->SetViewportSize(gfxSize); |
} |
+WebSize WebLayerTreeViewImplForTesting::getViewportSize() const |
+{ |
+ return WebSize( |
+ m_layerTreeHost->GetLayerTree()->device_viewport_size().width(), |
+ m_layerTreeHost->GetLayerTree()->device_viewport_size().height()); |
+} |
+ |
void WebLayerTreeViewImplForTesting::setDeviceScaleFactor(float deviceScaleFactor) |
{ |
m_layerTreeHost->GetLayerTree()->SetDeviceScaleFactor(deviceScaleFactor); |