skia2/include
scroggo b636b45971 Add the ability to decode a subset to SkCodec
This allows codecs that support subsets natively (i.e. WEBP) to do so.

Add a field on SkCodec::Options representing the subset.

Add a method on SkCodec to find a valid subset which approximately
matches a desired subset.

Implement subset decodes in SkWebpCodec.

Add a test in DM for decoding subsets.
Notice that we only start on even boundaries. This is due to the
way libwebp's API works. SkWEBPImageDecoder does not take this into
account, which results in visual artifacts.

FIXME: Subsets with scaling are not pixel identical, but close. (This
may be fine, though - they are not perceptually different. We'll just
need to mark another set of images in gold as valid, once
https://skbug.com/4038 is fixed, so we can tests scaled webp without
generating new images on each run.)

Review URL: https://codereview.chromium.org/1240143002
2015-07-22 07:16:20 -07:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c Propagate SkSurfaceProps to more call sites 2015-06-23 06:26:08 -07:00
codec Add the ability to decode a subset to SkCodec 2015-07-22 07:16:20 -07:00
config remove SkInstCnt 2015-06-26 11:45:03 -07:00
core Compile with VS2015. 2015-07-21 14:14:30 -07:00
device/xps C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
effects Add new SkPoint3 class 2015-07-13 13:16:44 -07:00
gpu Make readpixels work on GrTextures 2015-07-16 08:23:13 -07:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
pipe Fixing leaky handling of SkImage in SkDeferredCanvas. 2015-06-02 11:47:45 -07:00
ports Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
svg Add SkSVGCanvas 2015-02-06 12:51:10 -08:00
utils add src-rect-constraint to drawImageRect 2015-07-14 10:54:12 -07:00
views Revert "Move headers used by headers in include/ to include/private." 2015-07-01 16:35:59 -04:00
xml Fix up -Winconsistent-missing-override 2015-07-13 06:18:39 -07:00