| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 2001 mozilla.org | 5 * Portions are Copyright (C) 2001 mozilla.org |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Stuart Parmenter <stuart@mozilla.com> | 8 * Stuart Parmenter <stuart@mozilla.com> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 * If you do not delete the provisions above, a recipient may use your | 35 * If you do not delete the provisions above, a recipient may use your |
| 36 * version of this file under any of the LGPL, the MPL or the GPL. | 36 * version of this file under any of the LGPL, the MPL or the GPL. |
| 37 */ | 37 */ |
| 38 | 38 |
| 39 #include "platform/image-decoders/png/PNGImageReader.h" | 39 #include "platform/image-decoders/png/PNGImageReader.h" |
| 40 | 40 |
| 41 #include <memory> | 41 #include <memory> |
| 42 #include "platform/image-decoders/FastSharedBufferReader.h" | 42 #include "platform/image-decoders/FastSharedBufferReader.h" |
| 43 #include "platform/image-decoders/SegmentReader.h" | 43 #include "platform/image-decoders/SegmentReader.h" |
| 44 #include "platform/image-decoders/png/PNGImageDecoder.h" | 44 #include "platform/image-decoders/png/PNGImageDecoder.h" |
| 45 #include "wtf/PtrUtil.h" | 45 #include "platform/wtf/PtrUtil.h" |
| 46 #include "zlib.h" | 46 #include "zlib.h" |
| 47 | 47 |
| 48 namespace { | 48 namespace { |
| 49 | 49 |
| 50 inline blink::PNGImageDecoder* imageDecoder(png_structp png) { | 50 inline blink::PNGImageDecoder* imageDecoder(png_structp png) { |
| 51 return static_cast<blink::PNGImageDecoder*>(png_get_progressive_ptr(png)); | 51 return static_cast<blink::PNGImageDecoder*>(png_get_progressive_ptr(png)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void PNGAPI pngHeaderAvailable(png_structp png, png_infop) { | 54 void PNGAPI pngHeaderAvailable(png_structp png, png_infop) { |
| 55 imageDecoder(png)->headerAvailable(); | 55 imageDecoder(png)->headerAvailable(); |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 break; | 676 break; |
| 677 default: | 677 default: |
| 678 return false; | 678 return false; |
| 679 } | 679 } |
| 680 | 680 |
| 681 m_fctlNeedsDatChunk = true; | 681 m_fctlNeedsDatChunk = true; |
| 682 return true; | 682 return true; |
| 683 } | 683 } |
| 684 | 684 |
| 685 } // namespace blink | 685 } // namespace blink |
| OLD | NEW |