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

Unified Diff: cc/debug/picture_debug_util.cc

Issue 2206263003: Remove SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ref when needed. Created 4 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 | « cc/blimp/picture_data_conversions_unittest.cc ('k') | chrome/browser/android/thumbnail/thumbnail_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/picture_debug_util.cc
diff --git a/cc/debug/picture_debug_util.cc b/cc/debug/picture_debug_util.cc
index aef9ba8ae08fad35187690114ff9d4e5820b6086..f20715fc2960ffab9312f8998090caa18ee9eaf5 100644
--- a/cc/debug/picture_debug_util.cc
+++ b/cc/debug/picture_debug_util.cc
@@ -54,7 +54,7 @@ class BitmapSerializer : public SkPixelSerializer {
}
if (encoding_succeeded) {
- return SkData::NewWithCopy(&data.front(), data.size());
+ return SkData::MakeWithCopy(&data.front(), data.size()).release();
}
return nullptr;
}
« no previous file with comments | « cc/blimp/picture_data_conversions_unittest.cc ('k') | chrome/browser/android/thumbnail/thumbnail_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698