| 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 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 ImageObserver* imageObserver() const { return m_imageObserver; } | 108 ImageObserver* imageObserver() const { return m_imageObserver; } |
| 109 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer;
} | 109 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer;
} |
| 110 | 110 |
| 111 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile }; | 111 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile }; |
| 112 | 112 |
| 113 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; } | 113 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; } |
| 114 | 114 |
| 115 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A
ffineTransform& patternTransform, | 115 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A
ffineTransform& patternTransform, |
| 116 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator,
const FloatRect& destRect, BlendMode = BlendModeNormal); | 116 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator,
const FloatRect& destRect, BlendMode = BlendModeNormal); |
| 117 | 117 |
| 118 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | |
| 119 FloatRect adjustSourceRectForDownSampling(const FloatRect& srcRect, const In
tSize& scaledSize) const; | |
| 120 #endif | |
| 121 | |
| 122 #if !ASSERT_DISABLED | 118 #if !ASSERT_DISABLED |
| 123 virtual bool notSolidColor() { return true; } | 119 virtual bool notSolidColor() { return true; } |
| 124 #endif | 120 #endif |
| 125 | 121 |
| 126 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | 122 virtual void reportMemoryUsage(MemoryObjectInfo*) const; |
| 127 | 123 |
| 128 protected: | 124 protected: |
| 129 Image(ImageObserver* = 0); | 125 Image(ImageObserver* = 0); |
| 130 | 126 |
| 131 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c
onst Color&, ColorSpace styleColorSpace, CompositeOperator); | 127 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c
onst Color&, ColorSpace styleColorSpace, CompositeOperator); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 142 virtual Color solidColor() const { return Color(); } | 138 virtual Color solidColor() const { return Color(); } |
| 143 | 139 |
| 144 private: | 140 private: |
| 145 RefPtr<SharedBuffer> m_encodedImageData; | 141 RefPtr<SharedBuffer> m_encodedImageData; |
| 146 ImageObserver* m_imageObserver; | 142 ImageObserver* m_imageObserver; |
| 147 }; | 143 }; |
| 148 | 144 |
| 149 } | 145 } |
| 150 | 146 |
| 151 #endif | 147 #endif |
| OLD | NEW |