| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 { | 53 { |
| 54 return adoptRef(new BitmapImage(observer)); | 54 return adoptRef(new BitmapImage(observer)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 ~BitmapImage() override; | 57 ~BitmapImage() override; |
| 58 | 58 |
| 59 bool isBitmapImage() const override { return true; } | 59 bool isBitmapImage() const override { return true; } |
| 60 | 60 |
| 61 bool currentFrameHasSingleSecurityOrigin() const override; | 61 bool currentFrameHasSingleSecurityOrigin() const override; |
| 62 | 62 |
| 63 IntSize size() const override; | 63 IntSize concreteObjectSize(const FloatSize&) const override; |
| 64 IntSize sizeRespectingOrientation() const; | 64 IntSize sizeRespectingOrientation() const; |
| 65 bool getHotSpot(IntPoint&) const override; | 65 bool getHotSpot(IntPoint&) const override; |
| 66 String filenameExtension() const override; | 66 String filenameExtension() const override; |
| 67 bool dataChanged(bool allDataReceived) override; | 67 bool dataChanged(bool allDataReceived) override; |
| 68 | 68 |
| 69 bool isAllDataReceived() const { return m_allDataReceived; } | 69 bool isAllDataReceived() const { return m_allDataReceived; } |
| 70 bool hasColorProfile() const; | 70 bool hasColorProfile() const; |
| 71 | 71 |
| 72 // It may look unusual that there's no start animation call as public API. | 72 // It may look unusual that there's no start animation call as public API. |
| 73 // This because we start and stop animating lazily. Animation starts when | 73 // This because we start and stop animating lazily. Animation starts when |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 189 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
| 190 mutable bool m_hasUniformFrameSize : 1; | 190 mutable bool m_hasUniformFrameSize : 1; |
| 191 mutable bool m_haveFrameCount : 1; | 191 mutable bool m_haveFrameCount : 1; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 194 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
| 195 | 195 |
| 196 } // namespace blink | 196 } // namespace blink |
| 197 | 197 |
| 198 #endif | 198 #endif |
| OLD | NEW |