|
Remove image decoder and encoder autoregistration
Remove image decoder and encoder autoregistration through SkFactory.
Replace this with normal sequential if -statements and #ifdefs.
The ability to compile a encoder/decoder to the library just by including
a .cpp file was not fulfilled. In addition to adding the file, one would need
to add the new entry points to multiple other places, such as SkForceLinking.
The autoregistration caused the encoder/decoder system to be more laboursome
to maintan than without it.
Simplifies using images library with embedders like Chromium. Avoids following
problems:
* Linking of decoders do not need to be forced in every executable that
links to the library
* Decoder and encoder application order is not undefined
* Decoder and encoder application order does not need to be encoded in
build system. The previous order was not as expected on all
platforms, for example on windows.
Removes the possibility for library client to replace existing
decoders/encoders through the API. The possibility still exists
for clients that "recompile" Skia (such as Chromium).
BUG= skia:2992
Total comments: 51
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+552 lines, -678 lines) |
Patch |
|
M |
bench/ImageDecodeBench.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
bench/SkipZeroesBench.cpp
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
bench/nanobench.cpp
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
debugger/QT/SkDebuggerGUI.cpp
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
dm/DM.cpp
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
experimental/PdfViewer/chop_transparency_main.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
experimental/PdfViewer/src/SkPdfRenderer.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
experimental/nanomsg/picture_demo.cpp
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/gmmain.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
gyp/images.gyp
|
View
|
1
2
3
|
4 chunks |
+41 lines, -29 lines |
0 comments
|
Download
|
|
M |
gyp/utils.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkImageDecoder.h
|
View
|
1
2
|
1 chunk |
+0 lines, -30 lines |
0 comments
|
Download
|
|
M |
include/core/SkImageEncoder.h
|
View
|
1
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
|
D |
include/images/SkForceLinking.h
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleUnpremul.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/core/SkBitmapProcState.cpp
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
src/images/SkForceLinking.cpp
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_Factory.cpp
|
View
|
1
2
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
|
D |
src/images/SkImageDecoder_FactoryDefault.cpp
|
View
|
|
1 chunk |
+0 lines, -36 lines |
0 comments
|
Download
|
|
D |
src/images/SkImageDecoder_FactoryRegistrar.cpp
|
View
|
|
1 chunk |
+0 lines, -63 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_astc.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_astc.cpp
|
View
|
1
2
3
|
2 chunks |
+11 lines, -29 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_ktx.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_ktx.cpp
|
View
|
1
2
3
|
2 chunks |
+6 lines, -18 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libbmp.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libbmp.cpp
|
View
|
1
2
3
|
2 chunks |
+10 lines, -27 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libgif.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libgif.cpp
|
View
|
1
2
3
|
2 chunks |
+7 lines, -24 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libico.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libico.cpp
|
View
|
1
2
3
|
2 chunks |
+9 lines, -21 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libjpeg.h
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libjpeg.cpp
|
View
|
1
2
3
|
3 chunks |
+10 lines, -31 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libpng.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libpng.cpp
|
View
|
1
2
3
|
2 chunks |
+11 lines, -28 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_libwebp.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libwebp.cpp
|
View
|
1
2
3
|
3 chunks |
+8 lines, -24 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_pkm.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_pkm.cpp
|
View
|
1
2
3
|
2 chunks |
+9 lines, -27 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageDecoder_wbmp.h
|
View
|
1
2
3
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_wbmp.cpp
|
View
|
1
2
3
|
2 chunks |
+5 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageEncoder_Factory.cpp
|
View
|
1
2
3
|
1 chunk |
+36 lines, -8 lines |
0 comments
|
Download
|
|
A |
src/images/SkImageEncoder_argb.h
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageEncoder_argb.cpp
|
View
|
1
2
3
|
3 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
|
A + |
src/images/SkMovie_gif.h
|
View
|
2
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/images/SkMovie_gif.cpp
|
View
|
1
2
3
|
3 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
|
A |
src/ports/SkImageDecoder_CG.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkImageDecoder_CG.cpp
|
View
|
1
2
3
|
6 chunks |
+9 lines, -41 lines |
0 comments
|
Download
|
|
A |
src/ports/SkImageDecoder_WIC.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkImageDecoder_WIC.cpp
|
View
|
1
2
3
|
6 chunks |
+6 lines, -27 lines |
0 comments
|
Download
|
|
M |
src/utils/SkBitmapHasher.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/ARGBImageEncoderTest.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/GifTest.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/ImageDecodingTest.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/JpegTest.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/KtxTest.cpp
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/PathOpsExtendedTest.cpp
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/PathOpsSkpClipTest.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/LazyDecodeBitmap.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/bbh_shootout.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/filtermain.cpp
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/render_pdfs_main.cpp
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/skdiff_main.cpp
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/skhello.cpp
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/skimage_main.cpp
|
View
|
1
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/skpdiff/skpdiff_main.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
tools/test_image_decoder.cpp
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 18 (2 generated)
|