Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: gm/factory.cpp

Issue 1229933003: add runtime option to provide data->imagegenerator factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gm/mipmap.cpp » ('j') | include/core/SkGraphics.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/factory.cpp
diff --git a/gm/factory.cpp b/gm/factory.cpp
index 4af37636f9d647b027d389733d4d06a4a156b5b4..0a938629b9538b33da8cf14de2398d7fbbca160c 100644
--- a/gm/factory.cpp
+++ b/gm/factory.cpp
@@ -36,7 +36,7 @@ protected:
// bitmap is unlocked.
SkAutoTUnref<SkDiscardableMemoryPool> pool(
SkDiscardableMemoryPool::Create(1));
- SkAssertResult(SkInstallDiscardablePixelRef(SkImageGenerator::NewFromData(data),
+ SkAssertResult(SkInstallDiscardablePixelRef(SkImageGenerator::NewFromEncoded(data),
NULL, &fBitmap, pool));
}
}
« no previous file with comments | « no previous file | gm/mipmap.cpp » ('j') | include/core/SkGraphics.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698