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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.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 | « chrome/browser/android/thumbnail/thumbnail_cache.cc ('k') | skia/chromium_skia_defines.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 018a41599cd9c64b928f72504f9551e45d4679af..ca42a1831fbcda4098536447fe9a2af09bdd2460 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -96,7 +96,7 @@ class EncodingSerializer : public SkPixelSerializer {
// interesting.
vector.push_back(pixmap.colorType());
vector.push_back(pixmap.alphaType());
- return SkData::NewWithCopy(&vector.front(), vector.size());
+ return SkData::MakeWithCopy(&vector.front(), vector.size()).release();
} else {
SkBitmap bm;
// The const_cast is fine, since we only read from the bitmap.
@@ -104,7 +104,7 @@ class EncodingSerializer : public SkPixelSerializer {
const_cast<void*>(pixmap.addr()),
pixmap.rowBytes())) {
if (gfx::PNGCodec::EncodeBGRASkBitmap(bm, false, &vector)) {
- return SkData::NewWithCopy(&vector.front(), vector.size());
+ return SkData::MakeWithCopy(&vector.front(), vector.size()).release();
}
}
}
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail_cache.cc ('k') | skia/chromium_skia_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698