diff options
author | reed <reed@google.com> | 2016-04-15 10:56:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-15 10:56:52 -0700 |
commit | 2a04104ba0c40ea31f6bcf403bd69fda05935e5b (patch) | |
tree | 50156f4ed207593ea363eee56da50ce56352a8f5 /cmake | |
parent | 87a0c223e3685b303d6b14955d398e651f8b8c84 (diff) |
exernalize imagefactory guard
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1897453002
TBR=
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
Review URL: https://codereview.chromium.org/1897453002
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/example.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/example.cpp b/cmake/example.cpp index 96bf4d3ff8..20259b5589 100644 --- a/cmake/example.cpp +++ b/cmake/example.cpp @@ -80,7 +80,7 @@ int main(int, char**) { canvas->drawText(msg, strlen(msg), 90,120, paint); // Grab a snapshot of the surface as an immutable SkImage. - std::shared_ptr<SkImage> image = adopt(surface->newImageSnapshot()); + sk_sp<SkImage> image = surface->makeImageSnapshot(); // Encode that image as a .png into a blob in memory. std::shared_ptr<SkData> png = adopt(image->encode(SkImageEncoder::kPNG_Type, 100)); |