Go to file
Leon Scroggins III e132e7be5f Add SkCodec methods for individual frames
Add a version of getFrameInfo that returns information about a single
frame, allowing a client to skip creating the entire vector.

Add getFrameCount, for determining the number of frames in the image.

Reimplement std::vector<FrameInfo> getFrameInfo with the new methods.

Updates to the test:
- getFrameInfo(size_t, FrameInfo*) fails before parsing
- Test both versions of getFrameInfo
- Recreate the codec between tests, to test parsing

Change-Id: I77c19087f2f8dcf2c536d80167b18ad1ca96ae94
Reviewed-on: https://skia-review.googlesource.com/13190
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Chris Blume <cblume@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-04-12 15:22:43 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench SkSize can be aggregate-initialized 2017-04-11 18:57:20 +00:00
bin bin/fetch-clang-format 2017-03-08 16:43:49 +00:00
debugger Get Debugger app compiling again 2017-01-06 16:18:27 +00:00
dm SkSize can be aggregate-initialized 2017-04-11 18:57:20 +00:00
example Add the ability to enable/disable GPU path renderers 2017-02-22 20:29:56 +00:00
experimental Move the ability to access textures, buffers, and image storages out from GrProcessor. 2017-04-04 15:27:44 +00:00
fuzz Revert[4] "clean up (partially) colortable api"""" 2017-04-03 19:29:38 +00:00
gm Fix SkLocalMatrixShader::isAImage() to respect local matrix and image local matrix 2017-04-12 15:11:03 +00:00
gn Fix SkLocalMatrixShader::isAImage() to respect local matrix and image local matrix 2017-04-12 15:11:03 +00:00
include Add SkCodec methods for individual frames 2017-04-12 15:22:43 +00:00
infra Re-align tests in recipes with the names of reality 2017-04-12 12:32:35 +00:00
platform_tools One-liner fix that allows Viewer to switch between Raster and OpenGL 2017-02-23 22:33:36 +00:00
resources Correct GIF frame dependencies and track alpha 2017-04-11 15:05:05 +00:00
samplecode Add perspective shadows 2017-04-11 20:26:46 +00:00
site Add docs for downloading prebuilt binaries from CIPD 2017-04-12 12:10:05 +00:00
src Add SkCodec methods for individual frames 2017-04-12 15:22:43 +00:00
tests Add SkCodec methods for individual frames 2017-04-12 15:22:43 +00:00
third_party Correct GIF frame dependencies and track alpha 2017-04-11 15:05:05 +00:00
tools consolidate read/writePixels in GrSurfaceContext 2017-04-10 12:56:33 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Refactor Vulkan support to support Fuchsia 2017-04-05 17:32:09 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Added support for building for tvOS 2017-03-14 22:55:04 +00:00
BUILD.gn SkMultiPictureDocument : clean up MultiPictureDocumentReader interface 2017-04-07 15:55:38 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Update build tools to newer gn. 2017-03-17 17:38:58 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
PRESUBMIT.py Change PRESUBMIT.py to use [Get|Update]DescriptionLines 2017-04-05 12:49:32 +00:00
public.bzl remove pixelref flag from google3 2017-04-12 11:45:57 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Marker for driver update on Win10 Golo GT610 2017-03-29 14:07:18 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.