Prefer native scaling to sampling
Prefer native scaling to sampling

In the cases we have come across so far, native scaling has better performance
and correctness than sampling.  If native scaling is supported we want to use
it.

Jpegs native scale rounds up.
Ex: An 11x11 image with sampleSize=8 scales to 2x2.

SkScaledCodec rounds down.
Ex: An 11x11 image with sampleSize=8 scales to 1x1.

Before the CL, we would choose to use SkScaledCodec because it scales closer to
the "ideal" scale.

I think we want to go with the native option as long as its within 1 of the
ideal value.
BUG=skia:

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

tmpvar/skia.cc,shahrzadmn/skia,qrealka/skia-hc,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,shahrzadmn/skia,HalCanary/skia-hc,google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,google/skia,google/skia,tmpvar/skia.cc,rubenvb/skia,qrealka/skia-hc,google/skia,HalCanary/skia-hc,tmpvar/skia.cc,tmpvar/skia.cc,tmpvar/skia.cc,aosp-mirror/platform_external_skia,HalCanary/skia-hc,qrealka/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,shahrzadmn/skia,qrealka/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,qrealka/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,HalCanary/skia-hc,google/skia,aosp-mirror/platform_external_skia,shahrzadmn/skia,shahrzadmn/skia,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,shahrzadmn/skia,shahrzadmn/skia,google/skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,qrealka/skia-hc,shahrzadmn/skia,qrealka/skia-hc,aosp-mirror/platform_external_skia,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,google/skia,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,rubenvb/skia,google/skia,tmpvar/skia.cc,aosp-mirror/platform_external_skia,tmpvar/skia.cc,Hikari-no-Tenshi/android_external_skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,shahrzadmn/skia