| Index: Source/platform/graphics/FrameData.cpp
|
| diff --git a/Source/platform/graphics/FrameData.cpp b/Source/platform/graphics/FrameData.cpp
|
| index 351b30a049c0dda7702bca15c03399ba5fb10dff..b05bf8ee16f75fb43f4c7dfd09f678d11d52d9a0 100644
|
| --- a/Source/platform/graphics/FrameData.cpp
|
| +++ b/Source/platform/graphics/FrameData.cpp
|
| @@ -27,13 +27,10 @@
|
| #include "config.h"
|
| #include "platform/graphics/FrameData.h"
|
|
|
| -#include "platform/graphics/skia/NativeImageSkia.h"
|
| -
|
| namespace blink {
|
|
|
| FrameData::FrameData()
|
| - : m_frame(nullptr)
|
| - , m_orientation(DefaultImageOrientation)
|
| + : m_orientation(DefaultImageOrientation)
|
| , m_duration(0)
|
| , m_haveMetadata(false)
|
| , m_isComplete(false)
|
| @@ -55,8 +52,8 @@ bool FrameData::clear(bool clearMetadata)
|
| m_orientation = DefaultImageOrientation;
|
| m_frameBytes = 0;
|
|
|
| - if (m_frame) {
|
| - m_frame.clear();
|
| + if (!m_frame.isNull()) {
|
| + m_frame.reset();
|
|
|
| return true;
|
| }
|
|
|