| Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| index c9ae4ea51ed5a5bba2e665270fa785d9440b1d21..0ca6441697bdfd5b34a68aca6bdc65394870dbca 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| @@ -186,6 +186,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
|
| cc::CompositorFrame frame;
|
| // TODO(crbug.com/652931): update the device_scale_factor
|
| frame.metadata.device_scale_factor = 1.0f;
|
| + frame.delegated_frame_data.reset(new cc::DelegatedFrameData);
|
|
|
| const gfx::Rect bounds(m_width, m_height);
|
| const cc::RenderPassId renderPassId(1, 1);
|
| @@ -256,7 +257,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
|
| commitTypeHistogram.count(commitType);
|
|
|
| m_nextResourceId++;
|
| - frame.resource_list.push_back(std::move(resource));
|
| + frame.delegated_frame_data->resource_list.push_back(std::move(resource));
|
|
|
| cc::TextureDrawQuad* quad =
|
| pass->CreateAndAppendDrawQuad<cc::TextureDrawQuad>();
|
| @@ -277,7 +278,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
|
| SK_ColorTRANSPARENT, vertexOpacity, yflipped, nearestNeighbor,
|
| false);
|
|
|
| - frame.render_pass_list.push_back(std::move(pass));
|
| + frame.delegated_frame_data->render_pass_list.push_back(std::move(pass));
|
|
|
| double elapsedTime = WTF::monotonicallyIncreasingTime() - commitStartTime;
|
|
|
|
|