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

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

Issue 2495373003: Match html canvas which is transferred to OffscreenCanvas to CSS style (Closed)
Patch Set: fix compilation error Created 4 years 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 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());

Powered by Google App Engine
This is Rietveld 408576698