skia2/include
Leon Scroggins III 33deb7ed4d Make SkCodec more flexible about its required frame
SkCodec sets fRequiredFrame to be the earliest possible frame that a
given frame can depend on. e.g.

- Frame A fills the screen, Keep
- Frame B does not cover A, Keep
- Frame C covers B but not A, and is opaque

Frame C can depend on either A or B. SkCodec already reports that C
depends on A. This CL allows a client of SkCodec to use either A or
B to create C.

Also expose the DisposalMethod. Since any frame between A and C can
be used to create C except for DisposePrevious frames, the client
needs to be able to know the disposal method so they do not try to
use such a frame to create C.

Further, the disposal method can be used to give the client a better
idea whether they will continue to need a frame. (e.g. if frame i is
DisposePrevious and depends on i-1, the client may not want to steal
i-1 to create i, since i+1 may also depend on i-1.)

TODO: Share code for decoding prior frames between GIF and WEBP

Change-Id: I91a5ae22ba3d8dfbe0bde833fa67ae3da0d81ed6
Reviewed-on: https://skia-review.googlesource.com/13722
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Chris Blume <cblume@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-06-07 20:15:17 +00:00
..
android Let region decoders query the type and color space 2017-04-14 13:59:35 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
config Revert "Revert "SkUserConfig.h: remove out-of-date comment on SK_SFNTLY_SUBSETTER"" 2017-01-27 14:40:01 +00:00
core move SkPathRef.h into private 2017-06-07 15:24:46 +00:00
effects slant colorfilter away from filterSpan4f 2017-05-31 19:54:05 +00:00
encode remove SK_API from namespaced enum 2017-05-17 10:23:56 +00:00
gpu Remove ImmediateFlush mode 2017-06-02 17:35:18 +00:00
pathops use reversePathTo in place of addPathReverse 2016-11-07 05:09:28 -08:00
ports SkFontMgr::matchFamily should not crash on nullptr. 2017-05-01 18:13:02 +00:00
private move SkPathRef.h into private 2017-06-07 15:24:46 +00:00
svg no need for SK_SUPPORT_LEGACY_CANVAS_IS_REFCNT anymore 2016-12-07 22:28:04 +00:00
utils Remove ambient and spot mask filters. 2017-05-18 19:45:45 +00:00
views Touch input support for Windows 2017-06-07 14:27:09 +00:00