Index: gm/factory.cpp |
diff --git a/gm/factory.cpp b/gm/factory.cpp |
index 19eb63be0c87206ec54f262ea1e1326f6546da64..efd817db7dd255e88a4ac63b93568c9b8e4e1653 100644 |
--- a/gm/factory.cpp |
+++ b/gm/factory.cpp |
@@ -12,6 +12,7 @@ |
#include "SkDiscardableMemoryPool.h" |
#include "SkDiscardablePixelRef.h" |
#include "SkImageDecoder.h" |
+#include "SkImageGenerator.h" |
#include "SkOSFile.h" |
#include "SkStream.h" |
@@ -35,8 +36,10 @@ protected: |
// bitmap is unlocked. |
SkAutoTUnref<SkDiscardableMemoryPool> pool( |
SkNEW_ARGS(SkDiscardableMemoryPool, (1))); |
- SkAssertResult(SkDecodingImageGenerator::Install(data, |
- &fBitmap, pool)); |
+ SkAssertResult(SkInstallDiscardablePixelRef( |
+ SkDecodingImageGenerator::Create( |
+ data, SkDecodingImageGenerator::Options()), |
+ &fBitmap, pool)); |
} |
} |
@@ -68,4 +71,4 @@ private: |
static GM* MyFactory(void*) { return new FactoryGM; } |
static GMRegistry reg(MyFactory); |
-} |
+} // namespace skiagm |