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