Go to file
Leon Scroggins III c8037dc5ed Reland "Hide SkEncodedInfo"
This partially reverts commit
1793e7bb46.

Hide SkEncodedInfo

Bug: skia:7353
Bug: skia:6839

This contains information that is not necessary for clients to know. The
Color enum tells the number of components in the input, but this is only
interesting internally (to the SkSwizzler).

Similarly, the Alpha enum differs from SkAlphaType in that it has
kBinary instead of kPremul. This is useful information only internally
for determining whether the SkColorSpaceXform needs to premultiply.

The bitsPerComponent is potentially useful for a client; Android (in
SkAndroidCodec) uses it to determine the SkColorType. Rather than
exposing bitsPerComponent, make SkAndroidCodec a friend so it can
access the SkEncodedInfo. A future change will change SkCodec to
recommend F16 for bitsPerComponent > 8, but that will be more involved;
it was the reason for the revert of this CL.

Switch conversionSupported to use an SkColorType, which is enough info.

Replace the SkEncodedInfo::Alpha field on SkCodec::FrameInfo with an
SkAlphaType.

SkCodec still needs an SkEncodedInfo, so move its header (which is
already not SK_API) to include/private.

TBR=mtklein@chromium.org,reed@google.com
Change-Id: I928b1f55317602cb37d29da63b53026c8d139cee
Reviewed-on: https://skia-review.googlesource.com/80860
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-12-05 19:28:08 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Fix shader linker errors on several GL benchmarks 2017-11-17 20:52:26 +00:00
bin bin/try: Add interactive mode 2017-10-18 17:16:16 +00:00
debugger Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
dm Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
docs working on skimage 2017-12-01 17:13:39 +00:00
example Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
experimental Remove a huge pile of views code 2017-11-22 18:59:44 +00:00
fuzz Fuzz: RasterN32CanvasViaSerialization, 2017-12-01 17:56:26 +00:00
gm Add analytic clip FPs that read from the CCPR atlas 2017-12-05 18:06:18 +00:00
gn Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
include Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
infra ANGLE -> Clang 2017-12-05 19:25:38 +00:00
platform_tools remove mips support and bots 2017-12-05 17:19:45 +00:00
resources Extract Android FontMgr part of Typeface test. 2017-11-13 17:00:31 +00:00
samplecode Add analytic clip FPs that read from the CCPR atlas 2017-12-05 18:06:18 +00:00
site remove mips support and bots 2017-12-05 17:19:45 +00:00
src Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
tests Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
third_party Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
tools Add analytic clip FPs that read from the CCPR atlas 2017-12-05 18:06:18 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix use of uninitialized flag in SkCodec 2017-10-09 19:17:05 +00:00
BUILD.gn Move some bits from views to sk_app 2017-12-01 14:47:10 +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 Roll skia/third_party/externals/angle2/ d5f44c986..f5be5bafa (1 commit) 2017-12-04 20:10:09 +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
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Add in test_filter to build configuration 2017-10-16 11:09:49 +00:00
public.bzl Exclude tools/gpu/atlastext from public.bzl 2017-11-19 19:47:32 +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 Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +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.