| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef CrossfadeGeneratedImage_h | 26 #ifndef CrossfadeGeneratedImage_h |
| 27 #define CrossfadeGeneratedImage_h | 27 #define CrossfadeGeneratedImage_h |
| 28 | 28 |
| 29 #include "platform/geometry/IntSize.h" | 29 #include "platform/geometry/IntSize.h" |
| 30 #include "platform/graphics/GeneratedImage.h" | 30 #include "platform/graphics/GeneratedImage.h" |
| 31 #include "platform/graphics/Image.h" | 31 #include "platform/graphics/Image.h" |
| 32 #include "platform/graphics/ImageObserver.h" | 32 #include "platform/graphics/ImageObserver.h" |
| 33 #include "wtf/RefPtr.h" | 33 #include "platform/wtf/RefPtr.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class PLATFORM_EXPORT CrossfadeGeneratedImage final : public GeneratedImage { | 37 class PLATFORM_EXPORT CrossfadeGeneratedImage final : public GeneratedImage { |
| 38 public: | 38 public: |
| 39 static PassRefPtr<CrossfadeGeneratedImage> create(PassRefPtr<Image> fromImage, | 39 static PassRefPtr<CrossfadeGeneratedImage> create(PassRefPtr<Image> fromImage, |
| 40 PassRefPtr<Image> toImage, | 40 PassRefPtr<Image> toImage, |
| 41 float percentage, | 41 float percentage, |
| 42 IntSize crossfadeSize, | 42 IntSize crossfadeSize, |
| 43 const IntSize& size) { | 43 const IntSize& size) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 72 RefPtr<Image> m_fromImage; | 72 RefPtr<Image> m_fromImage; |
| 73 RefPtr<Image> m_toImage; | 73 RefPtr<Image> m_toImage; |
| 74 | 74 |
| 75 float m_percentage; | 75 float m_percentage; |
| 76 IntSize m_crossfadeSize; | 76 IntSize m_crossfadeSize; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |