| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void resetDecoder(); | 72 void resetDecoder(); |
| 73 | 73 |
| 74 // It may look unusual that there's no start animation call as public API. | 74 // It may look unusual that there's no start animation call as public API. |
| 75 // This because we start and stop animating lazily. Animation starts when | 75 // This because we start and stop animating lazily. Animation starts when |
| 76 // the image is rendered, and automatically pauses once all observers no | 76 // the image is rendered, and automatically pauses once all observers no |
| 77 // longer want to render the image. | 77 // longer want to render the image. |
| 78 virtual void stopAnimation() override; | 78 virtual void stopAnimation() override; |
| 79 virtual void resetAnimation() override; | 79 virtual void resetAnimation() override; |
| 80 virtual bool maybeAnimated() override; | 80 virtual bool maybeAnimated() override; |
| 81 | 81 |
| 82 virtual void setAnimationPolicy(ImageAnimationPolicy policy) override { m_an
imationPolicy = policy; } |
| 83 virtual ImageAnimationPolicy animationPolicy() override { return m_animation
Policy; } |
| 84 |
| 82 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() override; | 85 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() override; |
| 83 virtual PassRefPtr<Image> imageForDefaultFrame() override; | 86 virtual PassRefPtr<Image> imageForDefaultFrame() override; |
| 84 virtual bool currentFrameKnownToBeOpaque() override; | 87 virtual bool currentFrameKnownToBeOpaque() override; |
| 85 ImageOrientation currentFrameOrientation(); | 88 ImageOrientation currentFrameOrientation(); |
| 86 | 89 |
| 87 #if ENABLE(ASSERT) | 90 #if ENABLE(ASSERT) |
| 88 virtual bool notSolidColor() override; | 91 virtual bool notSolidColor() override; |
| 89 #endif | 92 #endif |
| 90 | 93 |
| 91 private: | 94 private: |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 195 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
| 193 mutable bool m_hasUniformFrameSize : 1; | 196 mutable bool m_hasUniformFrameSize : 1; |
| 194 mutable bool m_haveFrameCount : 1; | 197 mutable bool m_haveFrameCount : 1; |
| 195 }; | 198 }; |
| 196 | 199 |
| 197 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 200 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
| 198 | 201 |
| 199 } // namespace blink | 202 } // namespace blink |
| 200 | 203 |
| 201 #endif | 204 #endif |
| OLD | NEW |