From ef40e331106ef28bfd5455f7167a03e42fe8e6d9 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Fri, 5 Apr 2019 10:28:40 +1100 Subject: [PATCH] Rewrite some SkWuffsCodec designated initializers This should have been part of 48aa221 "Update Wuffs version", but was missed. Bug: skia:8235 Bug: skia:8764 Change-Id: I3d73ca71872431955ad66d67de4166bdda0a1071 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206141 Reviewed-by: Leon Scroggins Commit-Queue: Leon Scroggins --- src/codec/SkWuffsCodec.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/codec/SkWuffsCodec.cpp b/src/codec/SkWuffsCodec.cpp index ea5cb80eaa..6ed45cf0c8 100644 --- a/src/codec/SkWuffsCodec.cpp +++ b/src/codec/SkWuffsCodec.cpp @@ -209,13 +209,13 @@ SkWuffsFrame::SkWuffsFrame(wuffs_base__frame_config* fc) } SkCodec::FrameInfo SkWuffsFrame::frameInfo(bool fullyReceived) const { - return ((SkCodec::FrameInfo){ - .fRequiredFrame = getRequiredFrame(), - .fDuration = getDuration(), - .fFullyReceived = fullyReceived, - .fAlphaType = hasAlpha() ? kUnpremul_SkAlphaType : kOpaque_SkAlphaType, - .fDisposalMethod = getDisposalMethod(), - }); + SkCodec::FrameInfo ret; + ret.fRequiredFrame = getRequiredFrame(); + ret.fDuration = getDuration(); + ret.fFullyReceived = fullyReceived; + ret.fAlphaType = hasAlpha() ? kUnpremul_SkAlphaType : kOpaque_SkAlphaType; + ret.fDisposalMethod = getDisposalMethod(); + return ret; } uint64_t SkWuffsFrame::ioPosition() const {