|
Fill incomplete images in SkCodec parent class
Rather than implementing some sort of "fill" in every
SkCodec subclass for incomplete images, let's make the
parent class handle this situation.
This includes an API change to SkCodec.h
SkCodec::getScanlines() now returns the number of lines it
read successfully, rather than an SkCodec::Result enum.
getScanlines() most often fails on an incomplete input, in
which case it is useful to know how many lines were
successfully decoded - this provides more information than
kIncomplete vs kSuccess. We do lose information when the
API is used improperly, as we are no longer able to return
kInvalidParameter or kScanlineNotStarted.
Known Issues:
Does not work for incomplete fFrameIsSubset gifs.
Does not work for incomplete icos.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/e6dd004c1b8a81dc37a370570877b8b7d6dbe308
Total comments: 49
Total comments: 24
Total comments: 55
Total comments: 19
Total comments: 4
Total comments: 10
Total comments: 16
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1685 lines, -701 lines) |
Patch |
|
M |
bench/subset/SubsetSingleBench.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
bench/subset/SubsetTranslateBench.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
bench/subset/SubsetZoomBench.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
dm/DMSrcSink.cpp
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+30 lines, -82 lines |
0 comments
|
Download
|
|
M |
gyp/codec.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gyp/tools.gyp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
include/codec/SkCodec.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
10 chunks |
+90 lines, -26 lines |
0 comments
|
Download
|
|
M |
include/codec/SkScaledCodec.h
|
View
|
1
2
3
4
5
6
7
9
10
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/codec/SkBmpCodec.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpCodec.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+1 line, -17 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpMaskCodec.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpMaskCodec.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpRLECodec.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpRLECodec.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
12 chunks |
+32 lines, -21 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpStandardCodec.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkBmpStandardCodec.cpp
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+17 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
2 chunks |
+93 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodecPriv.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
12 chunks |
+34 lines, -31 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libgif.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libgif.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
6 chunks |
+49 lines, -72 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libico.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libico.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libpng.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_libpng.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
10 chunks |
+53 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_wbmp.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/codec/SkCodec_wbmp.cpp
|
View
|
1
2
3
4
5
6
7
9
10
|
5 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/codec/SkJpegCodec.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/codec/SkJpegCodec.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
7 chunks |
+14 lines, -27 lines |
0 comments
|
Download
|
|
M |
src/codec/SkMaskSwizzler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/codec/SkSampler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/codec/SkSampler.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+102 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/codec/SkScaledCodec.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
4 chunks |
+65 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/codec/SkSwizzler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+10 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/codec/SkSwizzler.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -79 lines |
0 comments
|
Download
|
|
M |
src/codec/SkWebpCodec.h
|
View
|
1
2
3
4
5
6
7
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/codec/SkWebpCodec.cpp
|
View
|
1
2
3
4
5
6
7
9
10
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/CodexTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
15 chunks |
+94 lines, -57 lines |
0 comments
|
Download
|
|
M |
tests/SwizzlerTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
6 chunks |
+29 lines, -37 lines |
0 comments
|
Download
|
|
M |
tools/SkBitmapRegionCanvas.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
|
M |
tools/SkBitmapRegionDecoderInterface.cpp
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
tools/dm_flags.json
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
10 chunks |
+783 lines, -23 lines |
0 comments
|
Download
|
|
M |
tools/dm_flags.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 67 (25 generated)
|