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

Unified Diff: dm/DM.cpp

Issue 1310373004: DM: use SkBitmap::reset() (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 8537313cf33e8697e831a219b48c86d93119e49d..b93f9d80788e200a2d0658a8d7b70e6c5fdeabc6 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -493,7 +493,7 @@ static bool dump_png(SkBitmap bitmap, const char* path, const char* md5) {
}
// We don't need bitmap anymore. Might as well drop our ref.
- bitmap = SkBitmap();
+ bitmap.reset();
FILE* f = fopen(path, "w");
if (!f) { return false; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698