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

Unified Diff: skia/ext/image_operations_bench.cc

Issue 331283002: stop calling deprecated setConfig (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + android typo Created 6 years, 6 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 | « skia/ext/image_operations.cc ('k') | skia/ext/image_operations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations_bench.cc
diff --git a/skia/ext/image_operations_bench.cc b/skia/ext/image_operations_bench.cc
index 617c46416373e4e5c5105c33c94846db47087759..c4146d260c5bfc3ea565f8de86753f156b9e26ab 100644
--- a/skia/ext/image_operations_bench.cc
+++ b/skia/ext/image_operations_bench.cc
@@ -229,9 +229,7 @@ bool Benchmark::ParseArgs(const base::CommandLine* command_line) {
// actual benchmark.
bool Benchmark::Run() const {
SkBitmap source;
- source.setConfig(SkBitmap::kARGB_8888_Config,
- source_.width(), source_.height());
- source.allocPixels();
+ source.allocN32Pixels(source_.width(), source_.height());
source.eraseARGB(0, 0, 0, 0);
SkBitmap dest;
« no previous file with comments | « skia/ext/image_operations.cc ('k') | skia/ext/image_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698