SkWuffsCodec: replace memset+check_wuffs_version
check_wuffs_version is deprecated. Bug: skia:8235 Change-Id: Ie4e99976318e0b831ecb2c04699fa2e5648c9813 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/195780 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
This commit is contained in:
parent
b3574c904f
commit
e39c88495c
@ -759,10 +759,10 @@ static SkCodec::Result reset_and_decode_image_config(wuffs_gif__decoder* d
|
||||
wuffs_base__image_config* imgcfg,
|
||||
wuffs_base__io_buffer* b,
|
||||
SkStream* s) {
|
||||
memset(decoder, 0, sizeof__wuffs_gif__decoder());
|
||||
const char* status = decoder->check_wuffs_version(sizeof__wuffs_gif__decoder(), WUFFS_VERSION);
|
||||
// Calling decoder->initialize will memset it to zero.
|
||||
const char* status = decoder->initialize(sizeof__wuffs_gif__decoder(), WUFFS_VERSION, 0);
|
||||
if (status != nullptr) {
|
||||
SkCodecPrintf("check_wuffs_version: %s", status);
|
||||
SkCodecPrintf("initialize: %s", status);
|
||||
return SkCodec::kInternalError;
|
||||
}
|
||||
while (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user