commit | 38d909ec2875f79952de08f36adfaac5680d2c53 | [log] [tgz] |
---|---|---|
author | bungeman <bungeman@google.com> | Tue Aug 02 14:40:46 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Aug 02 14:40:46 2016 -0700 |
tree | a11067146b42f3faa8531d6ef912f7246bbde1f2 | |
parent | ada5a44f3bdac10a8a0c53b34f5add7aea9fdbb0 [diff] [blame] |
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
diff --git a/src/codec/SkWbmpCodec.cpp b/src/codec/SkWbmpCodec.cpp index 326fc22..099b6e4 100644 --- a/src/codec/SkWbmpCodec.cpp +++ b/src/codec/SkWbmpCodec.cpp
@@ -155,8 +155,7 @@ } bool SkWbmpCodec::IsWbmp(const void* buffer, size_t bytesRead) { - SkAutoTUnref<SkData> data(SkData::NewWithoutCopy(buffer, bytesRead)); - SkMemoryStream stream(data); + SkMemoryStream stream(buffer, bytesRead, false); return read_header(&stream, nullptr); }