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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/graphics/FrameData.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/FrameData.cpp b/third_party/WebKit/Source/platform/graphics/FrameData.cpp
index b510aa935bccb53d3144cc6f4a3e9a5ac7cb0e2e..cfe4dfc4a49df02c08efba4d71e82df8b24d708c 100644
--- a/third_party/WebKit/Source/platform/graphics/FrameData.cpp
+++ b/third_party/WebKit/Source/platform/graphics/FrameData.cpp
@@ -51,11 +51,12 @@ bool FrameData::clear(bool clearMetadata)
m_orientation = DefaultImageOrientation;
m_frameBytes = 0;
- if (m_frame) {
- m_frame.clear();
- return true;
- }
- return false;
+ if (!m_frame)
+ return false;
+
+ m_cache.clear();
+ m_frame.clear();
+ return true;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/FrameData.h ('k') | third_party/WebKit/Source/platform/graphics/Gradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698