| 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 4157507c9d2c7aa4695cc92b09c74ab4a28b7a76..1324f1d66c35498a8d6cb7cd2ec63865dc81319b 100644
|
| --- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
|
| @@ -99,6 +99,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);
|
|
|