Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index b7603bf3bcd1925ad30bf7ba05cbdfc229372d67..be151f61bf1d3daf34e4bb0c80d42d2f0d7b64a0 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" |
@@ -487,7 +488,7 @@ public: |
return false; |
} |
- pic->reset(SkPicture::CreateFromStream(stream.get())); |
+ pic->reset(SkPicture::CreateFromStream(stream.get(), &sk_tools::LazyDecodeBitmap)); |
scroggo
2014/11/25 20:31:13
Alternatively, we could optionally do lazy decodes
|
if (pic->get() == NULL) { |
SkDebugf("Could not read %s as an SkPicture.\n", path); |
return false; |