Index: tools/gpuveto.cpp |
diff --git a/tools/gpuveto.cpp b/tools/gpuveto.cpp |
index f2e103e1e38d4c4a99c27a55e30015fdfb6645d4..204f44965bd3fa36d7194719d489bc99b37134ab 100644 |
--- a/tools/gpuveto.cpp |
+++ b/tools/gpuveto.cpp |
@@ -5,6 +5,7 @@ |
* found in the LICENSE file. |
*/ |
+#include "LazyDecodeBitmap.h" |
#include "SkCommandLineFlags.h" |
#include "SkPicture.h" |
#include "SkPictureRecorder.h" |
@@ -41,7 +42,9 @@ |
return kError; |
} |
- SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream)); |
+ SkPicture::InstallPixelRefProc proc = &sk_tools::LazyDecodeBitmap; |
+ |
+ SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream, proc)); |
if (nullptr == picture.get()) { |
if (!FLAGS_quiet) { |
SkDebugf("Could not read the SkPicture\n"); |