DescriptionCopy SharedBuffer before calling decodeImageData
With the existing JPEG code, the call to data() will copy all segments
in the SharedBuffer together. When timing multiple iterations, only the
first call does this, since the segments have already been copied.
In order to get a more reasonable picture of how long the call to decode()
takes, use a new SharedBuffer for each call to decodeImageData().
BUG=467772
Patch Set 1 #Patch Set 2 : Copy outside the loop #Patch Set 3 : Rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 3 (1 generated)
|