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

Unified Diff: src/core/SkImageCacherator.cpp

Issue 1295593002: some catchup CL revisions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « src/core/SkImageCacherator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageCacherator.cpp
diff --git a/src/core/SkImageCacherator.cpp b/src/core/SkImageCacherator.cpp
index b225612a17f77ab1f7f2f88b3692fcb6475adbba..1f481d0000cf9a97bcd8e03b2ac27892d3045cd0 100644
--- a/src/core/SkImageCacherator.cpp
+++ b/src/core/SkImageCacherator.cpp
@@ -19,10 +19,17 @@
#include "SkGrPriv.h"
#endif
+SkImageCacherator* SkImageCacherator::NewFromGenerator(SkImageGenerator* gen) {
+ if (!gen) {
+ return nullptr;
+ }
+ return SkNEW_ARGS(SkImageCacherator, (gen));
+}
+
SkImageCacherator::SkImageCacherator(SkImageGenerator* gen) : fGenerator(gen) {}
SkImageCacherator::~SkImageCacherator() {
- delete fGenerator;
+ SkDELETE(fGenerator);
}
static bool check_output_bitmap(const SkBitmap& bitmap, uint32_t expectedID) {
« no previous file with comments | « src/core/SkImageCacherator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698