skia2/dm
scroggo 7fac5af5e9 Fix bug testing SkCodec for ICO
Looking in Gold, I see some ICO images that only show the upper left
corner of the originals. It is happening because we use different ways
of deciding what the dimensions are:

In CodecSrc::size(), we use an SkScaledCodec to get the dimensions,
even when fMode is not kScaledCodec_Mode.

In CodecSrc::draw(), we only use SkScaledCodec in kScaledCodec_Mode.

My recent CL to combine SkScanlineDecoder with SkCodec revealed this
bug, because now SkScaledCodec::NewFromStream will succeed on ICO.
(Previously, it failed because we do not yet have a scanline decoder
for ICO (skbug.com/4404). Now that they are combined, we would need
to specially flag ICO to stop returning an SkScaledCodec.)

Switch size() to use the correct type of codec.

Review URL: https://codereview.chromium.org/1373253004
2015-09-30 11:33:12 -07:00
..
DM.cpp Merge SkCodec with SkScanlineDecoder 2015-09-30 08:57:14 -07:00
DMGpuSupport.h skia: Add ANGLE with GL backend to nanobench/DM 2015-09-11 13:07:29 -07:00
DMJsonWriter.cpp Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
DMJsonWriter.h Update DM to allow Src's to have optional options. 2015-04-03 07:24:48 -07:00
DMSrcSink.cpp Fix bug testing SkCodec for ICO 2015-09-30 11:33:12 -07:00
DMSrcSink.h DM: PDFSink sets rasterizer keyword 2015-09-28 11:51:54 -07:00
DMSrcSinkAndroid.cpp Move HWUI boilerplate into utils/android 2015-03-27 12:22:01 -07:00
DMSrcSinkAndroid.h Missing overrides for Sinks in HWUI. 2015-08-03 10:20:28 -07:00