Chromium Code Reviews| 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..a4c755e87a6f98bc5bfe735c5b110f6248e8454b 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); |
|
danakj
2017/01/09 19:37:12
you could do this once when the layer is created i
|
| m_CCLayer = surfaceLayer; |
| m_webLayer = |
| @@ -108,8 +108,8 @@ 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); |
| + surfaceLayer->SetStretchContentToFillBounds(true); |
| } |
| m_observer->OnWebLayerReplaced(); |