Improve comment ImageDecoder::InitializeNewFrame
Also remove unneeded ImageFrame setter calls in AVIFImageDecoder::InitializeNewFrame. By analyzing all the overrides of the InitializeNewFrame method, I found that the following ImageFrame setters can only be called during InitializeNewFrame: * SetDuration * SetDisposalMethod * SetAlphaBlendSource * SetRequiredPreviousFrameIndex Since AVIF frames don't require any previous frames, we don't need to call the last three setters in AVIFImageDecoder::InitializeNewFrame. Change-Id: I554c1a28a4dc008cd5e19946297b82fa0061f97c Bug: 1071221 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2164108 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#783760}
Showing
Please register or sign in to comment