diff options
author | bungeman <bungeman@google.com> | 2016-08-02 14:40:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-02 14:40:46 -0700 |
commit | 38d909ec2875f79952de08f36adfaac5680d2c53 (patch) | |
tree | a11067146b42f3faa8531d6ef912f7246bbde1f2 /tools/skhello.cpp | |
parent | ada5a44f3bdac10a8a0c53b34f5add7aea9fdbb0 (diff) |
Move off SK_SUPPORT_LEGACY_DATA_FACTORIES.
This moves Skia code off of SK_SUPPORT_LEGACY_DATA_FACTORIES.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2206633004
Review-Url: https://codereview.chromium.org/2206633004
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r-- | tools/skhello.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp index f7d5b9a00e..d1fb96e0eb 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -38,8 +38,8 @@ static bool do_surface(int w, int h, const char path[], const char text[], doDraw(surface->getCanvas(), paint, text); sk_sp<SkImage> image(surface->makeImageSnapshot()); - SkAutoDataUnref data(image->encode()); - if (nullptr == data.get()) { + sk_sp<SkData> data(image->encode()); + if (!data) { return false; } SkFILEWStream stream(path); |