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

kUndefinedFormat to kWebPAnimationFormat in commen

Change kUndefinedFormat to kWebPAnimationFormat in a comment in

ImageDecoder: :GetCompressionFormat().
Change-Id: I369054831fa6913930c7a8e50f1d70abd0f4f538
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135902Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Cr-Commit-Position: refs/heads/master@{#756919}
parent b22c609e
...@@ -202,8 +202,8 @@ ImageDecoder::CompressionFormat ImageDecoder::GetCompressionFormat( ...@@ -202,8 +202,8 @@ ImageDecoder::CompressionFormat ImageDecoder::GetCompressionFormat(
return kUndefinedFormat; return kUndefinedFormat;
// Attempt to sniff whether a WebP image is using a lossy or lossless // Attempt to sniff whether a WebP image is using a lossy or lossless
// compression algorithm. Note: Will return kUndefinedFormat in the case of an // compression algorithm. Note: Will return kWebPAnimationFormat in the case
// animated WebP image. // of an animated WebP image.
size_t available_data = image_data ? image_data->size() : 0; size_t available_data = image_data ? image_data->size() : 0;
if (EqualIgnoringASCIICase(mime_type, "image/webp") && available_data >= 16) { if (EqualIgnoringASCIICase(mime_type, "image/webp") && available_data >= 16) {
// Attempt to sniff only 8 bytes (the second half of the first 16). This // Attempt to sniff only 8 bytes (the second half of the first 16). This
......
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