| 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 3351fcd7e1bb6191978ec7aafd981aa72e185916..67b4817b97fb74df518a102fd71c098bde45f26c 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
|
| @@ -94,8 +94,8 @@ void CanvasSurfaceLayerBridge::OnSurfaceCreated(
|
|
|
| scoped_refptr<cc::SurfaceLayer> surfaceLayer =
|
| cc::SurfaceLayer::Create(m_refFactory);
|
| - surfaceLayer->SetSurfaceInfo(
|
| - surfaceInfo, true /* scale layer bounds with surface size */);
|
| + surfaceLayer->SetSurfaceInfo(surfaceInfo);
|
| + surfaceLayer->SetStretchContentToFillBounds(true);
|
| m_CCLayer = surfaceLayer;
|
|
|
| m_webLayer =
|
| @@ -108,8 +108,7 @@ void CanvasSurfaceLayerBridge::OnSurfaceCreated(
|
| m_currentSurfaceId = surfaceInfo.id();
|
| cc::SurfaceLayer* surfaceLayer =
|
| static_cast<cc::SurfaceLayer*>(m_CCLayer.get());
|
| - surfaceLayer->SetSurfaceInfo(
|
| - surfaceInfo, true /* scale layer bounds with surface size */);
|
| + surfaceLayer->SetSurfaceInfo(surfaceInfo);
|
| }
|
|
|
| m_observer->OnWebLayerReplaced();
|
|
|