diff options
author | reed <reed@chromium.org> | 2015-03-20 15:25:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-20 15:25:25 -0700 |
commit | 2fcbcea3a402411e7cfa46dfface41687f3f6437 (patch) | |
tree | b83d32bef5ac59689c1898abecf19f2bbfac76d8 /src/core | |
parent | 5fedef1c312a72faf30c1292279e3792087eb789 (diff) |
change default impl to facilitate transition in blink/chrome
BUG=skia:
TBR=
need deps roll to see if this works... since skia can no longer build/test in this legacy mode.
Review URL: https://codereview.chromium.org/1026923002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkImageGenerator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/SkImageGenerator.cpp b/src/core/SkImageGenerator.cpp index 27bc141d57..08c133d925 100644 --- a/src/core/SkImageGenerator.cpp +++ b/src/core/SkImageGenerator.cpp @@ -123,8 +123,11 @@ SkData* SkImageGenerator::onRefEncodedData() { } #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO -bool SkImageGenerator::onGetInfo(SkImageInfo*) { - return false; +bool SkImageGenerator::onGetInfo(SkImageInfo* info) { + if (info) { + *info = fInfo; + } + return true; } #endif |