Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp

Issue 2621653002: Remove stretch_content_to_fill_bounds from cc::SurfaceLayer::SetSurfaceInfo (Closed)
Patch Set: fix android Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698