Go to file
scroggo eb602a5c94 SkCodec no longer inherits from SkImageGenerator.
SkImageGenerator makes some assumptions that are not necessarily valid
for SkCodec. For example, SkCodec does not assume that it can always be
rewound.

We also have an ongoing question of what an SkCodec should report as
its default settings (i.e. the return from getInfo). It makes sense for
an SkCodec to report that its pixels are unpremultiplied, if that is
the case for the underlying data, but if a client of SkImageGenerator
uses the default settings (as many do), they will receive
unpremultiplied pixels which cannot (currently) be drawn with Skia. We
may ultimately decide to revisit SkCodec reporting an SkImageInfo, but
I have left it unchanged for now.

Import features of SkImageGenerator used by SkCodec into SkCodec.

I have left SkImageGenerator unchanged for now, but it no longer needs
Result or Options. This will require changes to Chromium.

Manually handle the lifetime of fScanlineDecoder, so SkScanlineDecoder.h
can include SkCodec.h (where Result is), and SkCodec.h does not need
to include it (to delete fScanlineDecoder).

In many places, make the following simple changes:
- Now include SkScanlineDecoder.h, which is no longer included by
  SkCodec.h
- Use the enums in SkCodec, rather than SkImageGenerator
- Stop including SkImageGenerator.h where no longer needed

Review URL: https://codereview.chromium.org/1220733013
2015-07-09 08:16:03 -07:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench SkCodec no longer inherits from SkImageGenerator. 2015-07-09 08:16:03 -07:00
bin Don't suppress nanobench output table in verbose mode 2015-06-26 13:32:53 -07:00
debugger Fix debugger compilation 2015-06-24 10:09:57 -07:00
dm SkCodec no longer inherits from SkImageGenerator. 2015-07-09 08:16:03 -07:00
example Propagate SkSurfaceProps to more call sites 2015-06-23 06:26:08 -07:00
experimental remove SkInstCnt 2015-06-26 11:45:03 -07:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm YUV to RGB Texture threading GrProcessorDataManager 2015-07-09 07:31:32 -07:00
gyp Do not try to compile x86 and x86_64 .asm files on Android 2015-07-09 07:55:01 -07:00
include SkCodec no longer inherits from SkImageGenerator. 2015-07-09 08:16:03 -07:00
infra Add a 64-bit ARM builder to the CQ. 2015-06-24 14:52:24 -07:00
platform_tools Add gradle wrappers for Android app builds 2015-07-08 10:50:42 -07:00
resources Revert of Add normal map sample (patchset #6 id:100001 of https://codereview.chromium.org/1212813009/) 2015-07-08 14:46:12 -07:00
samplecode Revert of Add normal map sample (patchset #6 id:100001 of https://codereview.chromium.org/1212813009/) 2015-07-08 14:46:12 -07:00
site doc: more changes 2015-07-09 06:58:06 -07:00
src SkCodec no longer inherits from SkImageGenerator. 2015-07-09 08:16:03 -07:00
tests SkCodec no longer inherits from SkImageGenerator. 2015-07-09 08:16:03 -07:00
third_party Add libjpeg-turbo library (depends on yasm) 2015-07-07 08:50:01 -07:00
tools Add tools/flatten to flatten nested pictures in .skps. 2015-07-08 10:06:01 -07:00
.gitignore git: add skps to .gitignore 2015-02-13 18:57:33 -08:00
AUTHORS Return cropBitmap 2015-04-15 05:48:54 -07:00
codereview.settings Automatically add a docs preview link and NOTRY=true when there are only docs changes. 2015-02-26 10:16:13 -08:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Add benjaminwagner@ to CQ_COMMITTERS. 2015-06-08 10:22:34 -07:00
DEPS Revert of Use the upstream version of libwebp, v0.4.3. (patchset #6 id:70001 of https://codereview.chromium.org/1178013008/) 2015-07-08 10:57:22 -07:00
Doxyfile Documentation: SkCanvas API 2015-05-19 10:21:29 -07:00
gyp_skia Support SKIA_OUT on Mac and ChromeOS 2015-05-04 08:04:28 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
HASHTAGS Fix cr SKPs naming 2015-03-31 08:03:02 -07:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
make.py Run gyp on Win with --no-parallel -G config=$(BUILDTYPE), fix pylint 2015-03-03 13:15:38 -05:00
Makefile Add lua scripts for generating n-grams from SKPs 2015-06-25 07:47:41 -07:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py Revert "Move headers used by headers in include/ to include/private." 2015-07-01 16:35:59 -04: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
skia.gyp Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
SKP_VERSION Update SKP version 2015-07-06 05:25:09 -07:00
whitespace.txt whitespace 2015-07-01 18:21:42 -04:00

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

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