| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef PNGImageDecoder_h | 26 #ifndef PNGImageDecoder_h |
| 27 #define PNGImageDecoder_h | 27 #define PNGImageDecoder_h |
| 28 | 28 |
| 29 #include "platform/image-decoders/ImageDecoder.h" | 29 #include "platform/image-decoders/ImageDecoder.h" |
| 30 #include "wtf/Noncopyable.h" | 30 #include "wtf/Noncopyable.h" |
| 31 #include "wtf/OwnPtr.h" | 31 #include "wtf/OwnPtr.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace blink { |
| 34 | 34 |
| 35 class PNGImageReader; | 35 class PNGImageReader; |
| 36 | 36 |
| 37 // This class decodes the PNG image format. | 37 // This class decodes the PNG image format. |
| 38 class PLATFORM_EXPORT PNGImageDecoder : public ImageDecoder { | 38 class PLATFORM_EXPORT PNGImageDecoder : public ImageDecoder { |
| 39 WTF_MAKE_NONCOPYABLE(PNGImageDecoder); | 39 WTF_MAKE_NONCOPYABLE(PNGImageDecoder); |
| 40 public: | 40 public: |
| 41 PNGImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfileO
ption, size_t maxDecodedBytes); | 41 PNGImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfileO
ption, size_t maxDecodedBytes); |
| 42 virtual ~PNGImageDecoder(); | 42 virtual ~PNGImageDecoder(); |
| 43 | 43 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 65 // Decodes the image. If |onlySize| is true, stops decoding after | 65 // Decodes the image. If |onlySize| is true, stops decoding after |
| 66 // calculating the image size. If decoding fails but there is no more | 66 // calculating the image size. If decoding fails but there is no more |
| 67 // data coming, sets the "decode failure" flag. | 67 // data coming, sets the "decode failure" flag. |
| 68 void decode(bool onlySize); | 68 void decode(bool onlySize); |
| 69 | 69 |
| 70 OwnPtr<PNGImageReader> m_reader; | 70 OwnPtr<PNGImageReader> m_reader; |
| 71 bool m_doNothingOnFailure; | 71 bool m_doNothingOnFailure; |
| 72 bool m_hasColorProfile; | 72 bool m_hasColorProfile; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace WebCore | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif | 77 #endif |
| OLD | NEW |