DeferredImageDecoder: early-out onGetYUV8Planes when possible

Ganesh rendering will query onGetYUV8Planes when rendering GIF frames,
and other image formats, that do not support YUV image decoding.

Since the type of image decoded is known when a DecodingImageGenerator
is created, store that type in DecodingImageGenerator, and use that to
early-out requests for YUV decoding to avoid wasting time.

ImageFrameGenerator::getYUVComponentSizes no longer needs to check for
"jpg" since it is now done earlier in DecodingImageGenerator.

No change in behavior, no new tests.

BUG=566885, 476531

Review URL: https://codereview.chromium.org/1508683002

Cr-Commit-Position: refs/heads/master@{#363727}
5 files changed