|
Refactored SkColorSpace and added in a Lab PCS GM
The refactoring breaks off A2B0 tag support into a separate
subclass of SkColorSpace_Base, while keeping the current
(besides CLUT) functionality in a XYZTRC subclass.
ICC profile loading is now aware of this and creates the A2B0
subclass when SkColorSpace::NewICC() is called on a profile
in need of the A2B0 functionality.
The LabPCSDemo GM loads a .icc profile containing a LAB PCS and
then runs a Lab->XYZ conversion on an image using it so we can
display it and test out the A2B0 SkColorSpace functionality,
sans a/b/m-curves, as well as the Lab->XYZ conversion code.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2389983002
Committed: https://skia.googlesource.com/skia/+/9488833428e83c93a7e6002f4d056084fb57112f
Total comments: 15
Total comments: 50
Total comments: 26
Total comments: 14
Total comments: 9
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+969 lines, -525 lines) |
Patch |
|
M |
bench/ColorCodecBench.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
dm/DMSrcSink.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/gamut.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+10 lines, -5 lines |
0 comments
|
Download
|
|
A |
gm/labpcsdemo.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+272 lines, -0 lines |
0 comments
|
Download
|
|
M |
gyp/core.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A |
resources/icc_profiles/srgb_lab_pcs.icc
|
View
|
|
Binary file |
0 comments
|
Download
|
|
M |
samplecode/SampleApp.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/codec/SkJpegCodec.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorSpace.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
14 chunks |
+43 lines, -93 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorSpaceXform.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
12 chunks |
+63 lines, -188 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorSpaceXform_Base.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
A |
src/core/SkColorSpace_A2B.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+102 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/core/SkColorSpace_A2B.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorSpace_Base.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+24 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorSpace_ICC.cpp
|
View
|
1
2
3
4
5
6
7
8
9
12
|
12 chunks |
+185 lines, -139 lines |
0 comments
|
Download
|
|
A |
src/core/SkColorSpace_XYZ.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/core/SkColorSpace_XYZ.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/gradients/SkGradientShader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrColorSpaceXform.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/CodecTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/ColorSpaceTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
|
M |
tests/ColorSpaceXformTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -25 lines |
0 comments
|
Download
|
|
M |
tests/SurfaceTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/TestConfigParsing.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+14 lines, -8 lines |
0 comments
|
Download
|
|
M |
tools/flags/SkCommonFlagsConfig.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
tools/visualize_color_gamut.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
Total messages: 71 (55 generated)
|