Index: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
index 4355caed2a27dd712a886705e5bd9e97539d3cf5..e471bb8d55a87a4681b9e0cacb935e6d93b731a3 100644 |
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
@@ -37,7 +37,8 @@ bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasWidth, |
m_surfaceLayer = cc::SurfaceLayer::Create(std::move(satisfyCallback), |
std::move(requireCallback)); |
m_surfaceLayer->SetSurfaceId(m_surfaceId, 1.f, |
- gfx::Size(canvasWidth, canvasHeight)); |
+ gfx::Size(canvasWidth, canvasHeight), |
+ true /* scale layer bounds with surface size */); |
m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer( |
m_surfaceLayer.get()); |