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..f3f4f3cfcef6733becdc6ac5d0830990da567b8c 100644 |
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp |
@@ -6,6 +6,7 @@ |
#include "cc/layers/surface_layer.h" |
#include "cc/surfaces/surface_id.h" |
+#include "cc/surfaces/surface_info.h" |
#include "cc/surfaces/surface_sequence.h" |
#include "platform/graphics/GraphicsLayer.h" |
#include "platform/mojo/MojoHelper.h" |
@@ -36,8 +37,8 @@ bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasWidth, |
&CanvasSurfaceLayerBridge::requireCallback, WTF::unretained(this))); |
m_surfaceLayer = cc::SurfaceLayer::Create(std::move(satisfyCallback), |
std::move(requireCallback)); |
- m_surfaceLayer->SetSurfaceId(m_surfaceId, 1.f, |
- gfx::Size(canvasWidth, canvasHeight)); |
+ m_surfaceLayer->SetSurfaceInfo( |
+ cc::SurfaceInfo(m_surfaceId, 1.f, gfx::Size(canvasWidth, canvasHeight))); |
m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer( |
m_surfaceLayer.get()); |