|
Create a scanline decoder without creating a codec
Prior to this CL, if a client wanted to decode scanlines, they had to
create an SkCodec in order to get an SkScanlineDecoder. This introduces
complications if input data is not easily shared between the two
objects.
Instead, add methods to SkScanlineDecoder for creating a new one from
input data, and remove the creation functions from SkCodec.
Update DM and tests.
Committed: https://skia.googlesource.com/skia/+/1c005e4a38e29d648ecebada25d3a718155043a3
Total comments: 16
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+340 lines, -192 lines) |
Patch |
|
M |
bench/nanobench.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
bench/subset/SubsetSingleBench.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
bench/subset/SubsetTranslateBench.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
bench/subset/SubsetZoomBench.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
dm/DMSrcSink.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
|
M |
gyp/codec.gyp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/codec/SkCodec.h
|
View
|
|
3 chunks |
+0 lines, -56 lines |
0 comments
|
Download
|
|
M |
include/codec/SkScanlineDecoder.h
|
View
|
1
2
3
|
6 chunks |
+69 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libpng.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libpng.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+86 lines, -31 lines |
0 comments
|
Download
|
|
M |
src/codec/SkJpegCodec.h
|
View
|
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/codec/SkJpegCodec.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+42 lines, -43 lines |
0 comments
|
Download
|
|
A |
src/codec/SkScanlineDecoder.cpp
|
View
|
1
2
3
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/CodexTest.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
Total messages: 27 (7 generated)
|