DescriptionSupport for libpng > 1.2.
* Add conditional defines for deprecated NULL type casts.
* Use wrapper functions for accessing png_structp & png_infop fields
(direct access is deprecated).
Tested on Fedora 17 (libpng 1.5) and Ubuntu 12.04 (libpng 1.2).
Note: there is one png_structp direct field acces left in
SkPNGImageDecoder::onDecodeRegion() for which libpng does not provide a
wrapper method (png_ptr->pass = 0). That should be OK for now as the code
is only enabled when SK_BUILD_FOR_ANDROID is set, and the Android libpng
version is striclty controlled. But it may become an issue in the future
when/if Android decides to update libpng, so we should investigate a
solution.
R=scroggo@google.com
Committed: http://code.google.com/p/skia/source/detail?r=8956
Patch Set 1 #
Total comments: 5
Patch Set 2 : Avoid touching png_ptr->pass on Android w/ libpng > 1.2. #
Total comments: 1
Messages
Total messages: 8 (0 generated)
|