aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gyp/tools.gyp11
-rw-r--r--tools/bench_record.cpp4
2 files changed, 12 insertions, 3 deletions
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 7fa7f7244f..fe84a97813 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -292,8 +292,15 @@
{
'target_name': 'bench_record',
'type': 'executable',
- 'sources': ['../tools/bench_record.cpp'],
- 'include_dirs': [ '../src/core/' ],
+ 'sources': [
+ '../tools/bench_record.cpp',
+ '../tools/LazyDecodeBitmap.cpp',
+ ],
+ 'include_dirs': [
+ '../src/core/',
+ '../src/images',
+ '../src/lazy',
+ ],
'dependencies': [
'flags.gyp:flags',
'skia_lib.gyp:skia_lib',
diff --git a/tools/bench_record.cpp b/tools/bench_record.cpp
index a2c354729e..cc8cc0e39d 100644
--- a/tools/bench_record.cpp
+++ b/tools/bench_record.cpp
@@ -15,6 +15,7 @@
#include "SkString.h"
#include "SkTileGridPicture.h"
#include "SkTime.h"
+#include "LazyDecodeBitmap.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
@@ -116,7 +117,8 @@ int tool_main(int argc, char** argv) {
failed = true;
continue;
}
- SkAutoTUnref<SkPicture> src(SkPicture::CreateFromStream(stream));
+ SkAutoTUnref<SkPicture> src(
+ SkPicture::CreateFromStream(stream, sk_tools::LazyDecodeBitmap));
if (!src) {
SkDebugf("Could not read %s as an SkPicture.\n", path.c_str());
failed = true;