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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP
olicy = policy; } | 83 void setAnimationPolicy(ImageAnimationPolicy policy) override { m_animationP
olicy = policy; } |
84 ImageAnimationPolicy animationPolicy() override { return m_animationPolicy;
} | 84 ImageAnimationPolicy animationPolicy() override { return m_animationPolicy;
} |
85 void advanceTime(double deltaTimeInSeconds) override; | 85 void advanceTime(double deltaTimeInSeconds) override; |
86 | 86 |
87 // Advance the image animation by one frame. | 87 // Advance the image animation by one frame. |
88 void advanceAnimationForTesting() override { internalAdvanceAnimation(false)
; } | 88 void advanceAnimationForTesting() override { internalAdvanceAnimation(false)
; } |
89 | 89 |
90 PassRefPtr<SkImage> imageForCurrentFrame() override; | 90 PassRefPtr<SkImage> imageForCurrentFrame() override; |
91 PassRefPtr<Image> imageForDefaultFrame() override; | 91 PassRefPtr<Image> imageForDefaultFrame() override; |
92 bool currentFrameKnownToBeOpaque() override; | 92 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override
; |
93 bool currentFrameIsComplete() override; | 93 bool currentFrameIsComplete() override; |
94 bool currentFrameIsLazyDecoded() override; | 94 bool currentFrameIsLazyDecoded() override; |
95 | 95 |
96 ImageOrientation currentFrameOrientation(); | 96 ImageOrientation currentFrameOrientation(); |
97 | 97 |
98 private: | 98 private: |
99 friend class BitmapImageTest; | 99 friend class BitmapImageTest; |
100 | 100 |
101 void updateSize() const; | 101 void updateSize() const; |
102 | 102 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 191 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
192 mutable bool m_hasUniformFrameSize : 1; | 192 mutable bool m_hasUniformFrameSize : 1; |
193 mutable bool m_haveFrameCount : 1; | 193 mutable bool m_haveFrameCount : 1; |
194 }; | 194 }; |
195 | 195 |
196 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 196 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
197 | 197 |
198 } // namespace blink | 198 } // namespace blink |
199 | 199 |
200 #endif | 200 #endif |
OLD | NEW |