| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 WebPIDecoder* m_decoder; | 76 WebPIDecoder* m_decoder; |
| 77 WebPDecBuffer m_decoderBuffer; | 77 WebPDecBuffer m_decoderBuffer; |
| 78 int m_formatFlags; | 78 int m_formatFlags; |
| 79 bool m_frameBackgroundHasAlpha; | 79 bool m_frameBackgroundHasAlpha; |
| 80 | 80 |
| 81 void readColorProfile(); | 81 void readColorProfile(); |
| 82 bool updateDemuxer(); | 82 bool updateDemuxer(); |
| 83 | 83 |
| 84 // Set |m_frameBackgroundHasAlpha| based on this frame's characteristics. | 84 // Set |m_frameBackgroundHasAlpha| based on this frame's characteristics. |
| 85 // Before calling this method, the caller must verify that the frame exists. | 85 // Before calling this method, the caller must verify that the frame exists. |
| 86 void onInitFrameBuffer(size_t frameIndex) override; | 86 bool onInitFrameBuffer(size_t frameIndex) override; |
| 87 | 87 |
| 88 // When the blending method of this frame is BlendAtopPreviousFrame, the | 88 // When the blending method of this frame is BlendAtopPreviousFrame, the |
| 89 // previous frame's buffer is necessary to decode this frame in | 89 // previous frame's buffer is necessary to decode this frame in |
| 90 // applyPostProcessing, so we can't take over the data. Before calling this | 90 // applyPostProcessing, so we can't take over the data. Before calling this |
| 91 // method, the caller must verify that the frame exists. | 91 // method, the caller must verify that the frame exists. |
| 92 bool canReusePreviousFrameBuffer(size_t frameIndex) const override; | 92 bool canReusePreviousFrameBuffer(size_t frameIndex) const override; |
| 93 | 93 |
| 94 void applyPostProcessing(size_t frameIndex); | 94 void applyPostProcessing(size_t frameIndex); |
| 95 void clearFrameBuffer(size_t frameIndex) override; | 95 void clearFrameBuffer(size_t frameIndex) override; |
| 96 | 96 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 107 void clearDecoder(); | 107 void clearDecoder(); |
| 108 | 108 |
| 109 // FIXME: Update libwebp's API so it does not require copying the data on each | 109 // FIXME: Update libwebp's API so it does not require copying the data on each |
| 110 // update. | 110 // update. |
| 111 sk_sp<SkData> m_consolidatedData; | 111 sk_sp<SkData> m_consolidatedData; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif | 116 #endif |
| OLD | NEW |