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

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: up 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
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698