Commit 9ba37d7c authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Commit Bot

Update method names Size() and FrameCount().

The method names are now capitalized.

Change-Id: Id9abdd66faa17b2f9d04c491509d6e234ffa50f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2113445Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Cr-Commit-Position: refs/heads/master@{#752481}
parent 1878b45f
......@@ -112,7 +112,7 @@ bool ImageDecoderWrapper::Decode(ImageDecoderFactory* factory,
// For multi-frame image decoders, we need to know how many frames are
// in that image in order to release the decoder when all frames are
// decoded. frameCount() is reliable only if all data is received and set in
// decoded. FrameCount() is reliable only if all data is received and set in
// decoder, particularly with GIF.
if (all_data_received_)
*frame_count = decoder->FrameCount();
......
......@@ -261,9 +261,9 @@ class PLATFORM_EXPORT ImageDecoder {
// method, i.e., IsDecodedSizeAvailable() must return true.
virtual cc::ImageHeaderMetadata MakeMetadataForDecodeAcceleration() const;
// This will only differ from size() for ICO (where each frame is a
// This will only differ from Size() for ICO (where each frame is a
// different icon) or other formats where different frames are different
// sizes. This does NOT differ from size() for GIF or WebP, since
// sizes. This does NOT differ from Size() for GIF or WebP, since
// decoding GIF or WebP composites any smaller frames against previous
// frames to create full-size frames.
virtual IntSize FrameSizeAtIndex(size_t) const { return Size(); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment