skia2/dm
msarett 6c50a8f4ab Use rounding when converting desiredScale to a sampleSize
Right now we have a bug in Gold where some images are labeled
_0.167 and others are labeled _0.166.  They are all 1/6
scales and should be labeled the same way and compared.

The fix involves changing 0.166 to 0.167 in the list of
scales that we test on, but SkScaledCodec does not scale
to 0.167 as I expected.

SkScaledCodec converts 0.167 to sampleSize = 5.999 and then
casts to sampleSize = 5.  I would argue that we should do
a true round, so 0.167 represents a sampleSize of 6.

In general, this CL change onGetScaledDimensions so that
we now round desiredScale to the nearest sampleSize.

BUG=skia:

Review URL: https://codereview.chromium.org/1356923002
2015-09-18 11:24:44 -07:00
..
DM.cpp Use rounding when converting desiredScale to a sampleSize 2015-09-18 11:24:44 -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 Provides various implementations of Android's SkBitmapRegionDecoder. 2015-09-08 15:35:32 -07:00
DMSrcSink.h Provides various implementations of Android's SkBitmapRegionDecoder. 2015-09-08 15:35:32 -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