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

Unified Diff: bench/ETCBitmapBench.cpp

Issue 1685963004: Revert of Make SkPicture/SkImageGenerator default to SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ETCBitmapBench.cpp
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp
index 305f49210850f338880ec859f4aa1ec68eda1204..1b06112996269e4cf52b8bffd7e615e8c9a4f026 100644
--- a/bench/ETCBitmapBench.cpp
+++ b/bench/ETCBitmapBench.cpp
@@ -72,9 +72,6 @@
}
return newData;
}
-
-// Defined in SkImageDecoder_ktx.cpp
-extern SkImageGenerator* decoder_image_generator(SkData*);
// This is the base class for all of the benches in this file. In general
// the ETC1 benches should all be working on the same data. Due to the
@@ -154,10 +151,10 @@
}
if (fDecompress) {
- SkAutoTDelete<SkImageGenerator> gen(decoder_image_generator(fPKMData));
+ SkAutoTDelete<SkImageGenerator> gen(SkImageGenerator::NewFromEncoded(fPKMData));
gen->generateBitmap(&fBitmap);
} else {
- fImage.reset(SkImage::NewFromGenerator(decoder_image_generator(fPKMData)));
+ fImage.reset(SkImage::NewFromEncoded(fPKMData));
}
}
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698