DescriptionPull up initFrameBuffer to ImageDecoder.
Just a refactor. No change in behavior, no new tests.
Pull up the initFrameBuffer method from WEBPImageDecoder and GIFImageDecoder to
ImageDecoder. The condition whether the previous frame's buffer could be taken
instead of copied is extracted into a virtual method. Both decoders have some
format-specific code, which is retained in the override method.
Committed: https://crrev.com/1b922661248b6684779a874883c5bf30d73bf692
Cr-Commit-Position: refs/heads/master@{#433282}
Patch Set 1 #Patch Set 2 : Add comment to point to DCHECK in overridden method. #Patch Set 3 : Make ImageDecoder::initFrameBuffer const-correct. #
Total comments: 14
Patch Set 4 : Process feedback patch set 1 #
Total comments: 4
Patch Set 5 : Remove unnecessary comment #Patch Set 6 : Solved merge conflict with crrev.com/2494363002 #
Messages
Total messages: 24 (11 generated)
|