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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // It may look unusual that there's no start animation call as public API. | 76 // It may look unusual that there's no start animation call as public API. |
77 // This because we start and stop animating lazily. Animation starts when | 77 // This because we start and stop animating lazily. Animation starts when |
78 // the image is rendered, and automatically pauses once all observers no | 78 // the image is rendered, and automatically pauses once all observers no |
79 // longer want to render the image. | 79 // longer want to render the image. |
80 virtual void stopAnimation() override; | 80 virtual void stopAnimation() override; |
81 virtual void resetAnimation() override; | 81 virtual void resetAnimation() override; |
82 virtual bool maybeAnimated() override; | 82 virtual bool maybeAnimated() override; |
83 | 83 |
84 virtual void setAnimationPolicy(ImageAnimationPolicy policy) override { m_an
imationPolicy = policy; } | 84 virtual void setAnimationPolicy(ImageAnimationPolicy policy) override { m_an
imationPolicy = policy; } |
85 virtual ImageAnimationPolicy animationPolicy() override { return m_animation
Policy; } | 85 virtual ImageAnimationPolicy animationPolicy() override { return m_animation
Policy; } |
| 86 virtual void advanceTime(double deltaTimeInSeconds) override; |
86 | 87 |
87 virtual bool bitmapForCurrentFrame(SkBitmap*) override; | 88 virtual bool bitmapForCurrentFrame(SkBitmap*) override; |
88 virtual PassRefPtr<Image> imageForDefaultFrame() override; | 89 virtual PassRefPtr<Image> imageForDefaultFrame() override; |
89 virtual bool currentFrameKnownToBeOpaque() override; | 90 virtual bool currentFrameKnownToBeOpaque() override; |
90 ImageOrientation currentFrameOrientation(); | 91 ImageOrientation currentFrameOrientation(); |
91 | 92 |
92 #if ENABLE(ASSERT) | 93 #if ENABLE(ASSERT) |
93 virtual bool notSolidColor() override; | 94 virtual bool notSolidColor() override; |
94 #endif | 95 #endif |
95 | 96 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 203 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
203 mutable bool m_hasUniformFrameSize : 1; | 204 mutable bool m_hasUniformFrameSize : 1; |
204 mutable bool m_haveFrameCount : 1; | 205 mutable bool m_haveFrameCount : 1; |
205 }; | 206 }; |
206 | 207 |
207 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 208 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
208 | 209 |
209 } // namespace blink | 210 } // namespace blink |
210 | 211 |
211 #endif | 212 #endif |
OLD | NEW |