diff options
author | 2015-07-09 11:47:36 -0700 | |
---|---|---|
committer | 2015-07-09 11:47:36 -0700 | |
commit | 1c84634454aa78fb26f23875b86a243aa4596c59 (patch) | |
tree | ced1b33e730a196a7ad6fb9721543af9b62f3565 /tools | |
parent | 3547505278f5f9fe9602ec767c20d461f7a5dab6 (diff) |
add runtime option to provide data->imagegenerator factory
BUG=skia:
Review URL: https://codereview.chromium.org/1229933003
Diffstat (limited to 'tools')
-rw-r--r-- | tools/LazyDecodeBitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/LazyDecodeBitmap.cpp b/tools/LazyDecodeBitmap.cpp index 6c655da9e9..bcd8cad44d 100644 --- a/tools/LazyDecodeBitmap.cpp +++ b/tools/LazyDecodeBitmap.cpp @@ -28,7 +28,7 @@ bool sk_tools::LazyDecodeBitmap(const void* src, size_t length, SkBitmap* dst) { return false; } - SkAutoTDelete<SkImageGenerator> gen(SkImageGenerator::NewFromData(data)); + SkAutoTDelete<SkImageGenerator> gen(SkImageGenerator::NewFromEncoded(data)); if (NULL == gen.get()) { return false; } |