Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: Source/platform/graphics/FrameData.cpp

Issue 1008243003: Nuke NativeImageSkia -- new version. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more WARN_UNUSED_RETURN goodness Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/FrameData.h ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/platform/graphics/FrameData.h ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698