| Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
|
| index e78f4820c4b3e90ef1f0cc06bd4ffecb6c4c3a27..e87e29f23758a7de6bd42c4a1c56b3a8b6677b80 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
|
| @@ -67,11 +67,13 @@ void OffscreenCanvasPlaceholder::setPlaceholderFrame(
|
| std::unique_ptr<WebTaskRunner> taskRunner,
|
| unsigned resourceId) {
|
| DCHECK(isPlaceholderRegistered());
|
| + DCHECK(newFrame);
|
| releasePlaceholderFrame();
|
| m_placeholderFrame = std::move(newFrame);
|
| m_frameDispatcher = std::move(dispatcher);
|
| m_frameDispatcherTaskRunner = std::move(taskRunner);
|
| m_placeholderFrameResourceId = resourceId;
|
| + setSize(m_placeholderFrame->size());
|
| }
|
|
|
| void OffscreenCanvasPlaceholder::releasePlaceholderFrame() {
|
|
|