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 28 matching lines...) Expand all Loading... |
39 PNGImageDecoder(AlphaOption, | 39 PNGImageDecoder(AlphaOption, |
40 const ColorBehavior&, | 40 const ColorBehavior&, |
41 size_t max_decoded_bytes, | 41 size_t max_decoded_bytes, |
42 size_t offset = 0); | 42 size_t offset = 0); |
43 ~PNGImageDecoder() override; | 43 ~PNGImageDecoder() override; |
44 | 44 |
45 // ImageDecoder: | 45 // ImageDecoder: |
46 String FilenameExtension() const override { return "png"; } | 46 String FilenameExtension() const override { return "png"; } |
47 bool SetSize(unsigned, unsigned) override; | 47 bool SetSize(unsigned, unsigned) override; |
48 int RepetitionCount() const override; | 48 int RepetitionCount() const override; |
49 bool FrameIsCompleteAtIndex(size_t) const override; | 49 bool FrameIsReceivedAtIndex(size_t) const override; |
50 float FrameDurationAtIndex(size_t) const override; | 50 float FrameDurationAtIndex(size_t) const override; |
51 bool SetFailed() override; | 51 bool SetFailed() override; |
52 | 52 |
53 // Callbacks from libpng | 53 // Callbacks from libpng |
54 void HeaderAvailable(); | 54 void HeaderAvailable(); |
55 void RowAvailable(unsigned char* row, unsigned row_index, int); | 55 void RowAvailable(unsigned char* row, unsigned row_index, int); |
56 void FrameComplete(); | 56 void FrameComplete(); |
57 | 57 |
58 void SetColorSpace(); | 58 void SetColorSpace(); |
59 void SetRepetitionCount(int); | 59 void SetRepetitionCount(int); |
(...skipping 14 matching lines...) Expand all Loading... |
74 const unsigned offset_; | 74 const unsigned offset_; |
75 size_t current_frame_; | 75 size_t current_frame_; |
76 int repetition_count_; | 76 int repetition_count_; |
77 bool has_alpha_channel_; | 77 bool has_alpha_channel_; |
78 bool current_buffer_saw_alpha_; | 78 bool current_buffer_saw_alpha_; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace blink | 81 } // namespace blink |
82 | 82 |
83 #endif | 83 #endif |
OLD | NEW |