Change default of skia_use_wuffs to true

Bug: skia:12921

Skia is switching over completely to Wuffs. All known clients are
already using Wuffs, so switch our development builds to Wuffs.

Fix a clang warning building SkWuffsCodec.

Change-Id: I24d676bcb514ff4c6657bedacc76c86898b9170c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505676
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Auto-Submit: Leon Scroggins <scroggo@google.com>
This commit is contained in:
Leon Scroggins III 2022-02-08 10:56:14 -05:00 committed by SkCQ
parent aa3b95ffaf
commit 281126dff3
3 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ Milestone 100
std::string_view and std::optional.
* Added SkSurface::resolveMSAA api to force Skia to resolve MSAA draws. Useful for when
Skia wraps a client's texture as the resolve target.
* Development builds of Skia now default to using Wuffs for decoding GIF files. libgifcodec
will be removed soon.
* * *

View File

@ -65,7 +65,7 @@ declare_args() {
skia_use_piex = !is_win
skia_use_sfml = false
skia_use_webgl = false
skia_use_wuffs = false
skia_use_wuffs = true
skia_use_x11 = is_linux
skia_use_xps = true
skia_enable_graphite = false

View File

@ -922,7 +922,7 @@ std::unique_ptr<SkCodec> SkWuffsCodec_MakeFromStream(std::unique_ptr<SkStream> s
// not provide a seekable stream. Copy the stream to one that can seek.
if (!stream->hasPosition() || !stream->hasLength()) {
auto data = SkCopyStreamToData(stream.get());
stream.reset(new SkMemoryStream(std::move(data)));
stream = std::make_unique<SkMemoryStream>(std::move(data));
}
uint8_t buffer[SK_WUFFS_CODEC_BUFFER_SIZE];