aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-01-07 18:04:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-07 18:04:45 -0800
commit5965c8ae4ee960275da4bc40189bdba85aab8b5e (patch)
treedc7f14af5cbce088311191a981b6ae67c2286be6 /bench
parent23d432080cb8506bf8e371b1637ce8f2de9c0c05 (diff)
add ImageGenerator::NewFromData to porting layer
Diffstat (limited to 'bench')
-rw-r--r--bench/ETCBitmapBench.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp
index 36573c8245..4255923c4b 100644
--- a/bench/ETCBitmapBench.cpp
+++ b/bench/ETCBitmapBench.cpp
@@ -9,7 +9,7 @@
#include "Resources.h"
#include "SkCanvas.h"
#include "SkData.h"
-#include "SkDecodingImageGenerator.h"
+#include "SkImageGenerator.h"
#include "SkImageDecoder.h"
#include "SkOSFile.h"
#include "SkPixelRef.h"
@@ -151,9 +151,7 @@ protected:
}
// Install pixel ref
- if (!SkInstallDiscardablePixelRef(
- SkDecodingImageGenerator::Create(
- fPKMData, SkDecodingImageGenerator::Options()), &(this->fBitmap))) {
+ if (!SkInstallDiscardablePixelRef(fPKMData, &(this->fBitmap))) {
SkDebugf("Could not install discardable pixel ref.\n");
return;
}