| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "platform/image-decoders/gif/GIFImageDecoder.h" | 27 #include "platform/image-decoders/gif/GIFImageDecoder.h" |
| 28 | 28 |
| 29 #include <limits> | 29 #include <limits> |
| 30 #include "platform/PlatformInstrumentation.h" | 30 #include "platform/PlatformInstrumentation.h" |
| 31 #include "platform/image-decoders/gif/GIFImageReader.h" | 31 #include "platform/image-decoders/gif/GIFImageReader.h" |
| 32 #include "wtf/NotFound.h" | 32 #include "wtf/NotFound.h" |
| 33 #include "wtf/PassOwnPtr.h" | 33 #include "wtf/PassOwnPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 | 36 |
| 37 GIFImageDecoder::GIFImageDecoder(ImageSource::AlphaOption alphaOption, | 37 GIFImageDecoder::GIFImageDecoder(ImageSource::AlphaOption alphaOption, |
| 38 ImageSource::GammaAndColorProfileOption gammaAndColorProfileOption, | 38 ImageSource::GammaAndColorProfileOption gammaAndColorProfileOption, |
| 39 size_t maxDecodedBytes) | 39 size_t maxDecodedBytes) |
| 40 : ImageDecoder(alphaOption, gammaAndColorProfileOption, maxDecodedBytes) | 40 : ImageDecoder(alphaOption, gammaAndColorProfileOption, maxDecodedBytes) |
| 41 , m_repetitionCount(cAnimationLoopOnce) | 41 , m_repetitionCount(cAnimationLoopOnce) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 GIFImageDecoder::~GIFImageDecoder() | 45 GIFImageDecoder::~GIFImageDecoder() |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 378 } |
| 379 | 379 |
| 380 // Update our status to be partially complete. | 380 // Update our status to be partially complete. |
| 381 buffer->setStatus(ImageFrame::FramePartial); | 381 buffer->setStatus(ImageFrame::FramePartial); |
| 382 | 382 |
| 383 // Reset the alpha pixel tracker for this frame. | 383 // Reset the alpha pixel tracker for this frame. |
| 384 m_currentBufferSawAlpha = false; | 384 m_currentBufferSawAlpha = false; |
| 385 return true; | 385 return true; |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace WebCore | 388 } // namespace blink |
| OLD | NEW |