| Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| index 74d2988faa73344dbc3d3a83d460da634de4f2ea..c685d64af5427d3f1cea5b3d24f005611d7f15b1 100644
|
| --- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| +++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| @@ -51,6 +51,9 @@ void OffscreenCanvas::setSize(const IntSize& size) {
|
| }
|
| }
|
| m_size = size;
|
| + if (m_frameDispatcher) {
|
| + m_frameDispatcher->reshape(m_size.width(), m_size.height());
|
| + }
|
| }
|
|
|
| void OffscreenCanvas::setNeutered() {
|
| @@ -183,7 +186,7 @@ OffscreenCanvasFrameDispatcher* OffscreenCanvas::getOrCreateFrameDispatcher() {
|
| // throughout the lifetime of this OffscreenCanvas.
|
| m_frameDispatcher = wrapUnique(new OffscreenCanvasFrameDispatcherImpl(
|
| m_clientId, m_sinkId, m_localId, m_nonceHigh, m_nonceLow,
|
| - m_placeholderCanvasId, width(), height()));
|
| + m_placeholderCanvasId, m_size.width(), m_size.height()));
|
| }
|
| return m_frameDispatcher.get();
|
| }
|
|
|