aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bench/nanobench.cpp3
-rw-r--r--gyp/bench.gyp1
2 files changed, 3 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index eb48ec228d..389fd1d71f 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -10,6 +10,7 @@
#include "Benchmark.h"
#include "CrashHandler.h"
#include "GMBench.h"
+#include "LazyDecodeBitmap.h"
#include "ProcStats.h"
#include "ResultsWriter.h"
#include "RecordingBench.h"
@@ -484,7 +485,7 @@ public:
return false;
}
- pic->reset(SkPicture::CreateFromStream(stream.get()));
+ pic->reset(SkPicture::CreateFromStream(stream.get(), &sk_tools::LazyDecodeBitmap));
if (pic->get() == NULL) {
SkDebugf("Could not read %s as an SkPicture.\n", path);
return false;
diff --git a/gyp/bench.gyp b/gyp/bench.gyp
index 26849d511a..fa9e5e3a98 100644
--- a/gyp/bench.gyp
+++ b/gyp/bench.gyp
@@ -14,6 +14,7 @@
'../bench/RecordingBench.cpp',
'../bench/SKPBench.cpp',
'../bench/nanobench.cpp',
+ '../tools/LazyDecodeBitmap.cpp',
],
'includes': [
'bench.gypi',