| 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 ce196ddb0286c87b8e9e066c87feb010668d0787..81ac2c264bcc9f15b512fa49936d31f8cfcb1499 100644
|
| --- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
|
| @@ -88,6 +88,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);
|
|
|