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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 virtual bool dataChanged(bool allDataReceived) OVERRIDE; | 69 virtual bool dataChanged(bool allDataReceived) OVERRIDE; |
70 virtual String filenameExtension() const OVERRIDE; | 70 virtual String filenameExtension() const OVERRIDE; |
71 | 71 |
72 // It may look unusual that there is no start animation call as public API.
This is because | 72 // It may look unusual that there is no start animation call as public API.
This is because |
73 // we start and stop animating lazily. Animation begins whenever someone dr
aws the image. It will | 73 // we start and stop animating lazily. Animation begins whenever someone dr
aws the image. It will |
74 // automatically pause once all observers no longer want to render the image
anywhere. | 74 // automatically pause once all observers no longer want to render the image
anywhere. |
75 virtual void stopAnimation() OVERRIDE; | 75 virtual void stopAnimation() OVERRIDE; |
76 virtual void resetAnimation() OVERRIDE; | 76 virtual void resetAnimation() OVERRIDE; |
77 | 77 |
78 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; | 78 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame(ScaleHint /*h
int*/ = UseNativeScale) OVERRIDE; |
79 virtual bool currentFrameKnownToBeOpaque() OVERRIDE; | 79 virtual bool currentFrameKnownToBeOpaque() OVERRIDE; |
80 | 80 |
81 ImageOrientation currentFrameOrientation(); | 81 ImageOrientation currentFrameOrientation(); |
82 | 82 |
83 #if !ASSERT_DISABLED | 83 #if !ASSERT_DISABLED |
84 virtual bool notSolidColor() OVERRIDE; | 84 virtual bool notSolidColor() OVERRIDE; |
85 #endif | 85 #endif |
86 | 86 |
87 private: | 87 private: |
88 friend class BitmapImageTest; | 88 friend class BitmapImageTest; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool m_allDataReceived : 1; // Whether or not we've received all our data. | 181 bool m_allDataReceived : 1; // Whether or not we've received all our data. |
182 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. | 182 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. |
183 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 183 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
184 mutable bool m_hasUniformFrameSize : 1; | 184 mutable bool m_hasUniformFrameSize : 1; |
185 mutable bool m_haveFrameCount : 1; | 185 mutable bool m_haveFrameCount : 1; |
186 }; | 186 }; |
187 | 187 |
188 } | 188 } |
189 | 189 |
190 #endif | 190 #endif |
OLD | NEW |