| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // FIXME: SVGImages are underreporting decoded sizes and will be unable | 113 // FIXME: SVGImages are underreporting decoded sizes and will be unable |
| 114 // to prune because these functions are not implemented yet. | 114 // to prune because these functions are not implemented yet. |
| 115 void destroyDecodedData() override {} | 115 void destroyDecodedData() override {} |
| 116 | 116 |
| 117 // FIXME: Implement this to be less conservative. | 117 // FIXME: Implement this to be less conservative. |
| 118 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { | 118 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { |
| 119 return false; | 119 return false; |
| 120 } | 120 } |
| 121 | 121 |
| 122 void draw(SkCanvas*, | 122 void draw(PaintCanvas*, |
| 123 const SkPaint&, | 123 const SkPaint&, |
| 124 const FloatRect& fromRect, | 124 const FloatRect& fromRect, |
| 125 const FloatRect& toRect, | 125 const FloatRect& toRect, |
| 126 RespectImageOrientationEnum, | 126 RespectImageOrientationEnum, |
| 127 ImageClampingMode, | 127 ImageClampingMode, |
| 128 const ColorBehavior&) override; | 128 const ColorBehavior&) override; |
| 129 void drawForContainer(SkCanvas*, | 129 void drawForContainer(PaintCanvas*, |
| 130 const SkPaint&, | 130 const SkPaint&, |
| 131 const FloatSize, | 131 const FloatSize, |
| 132 float, | 132 float, |
| 133 const FloatRect&, | 133 const FloatRect&, |
| 134 const FloatRect&, | 134 const FloatRect&, |
| 135 const KURL&); | 135 const KURL&); |
| 136 void drawPatternForContainer(GraphicsContext&, | 136 void drawPatternForContainer(GraphicsContext&, |
| 137 const FloatSize, | 137 const FloatSize, |
| 138 float, | 138 float, |
| 139 const FloatRect&, | 139 const FloatRect&, |
| 140 const FloatSize&, | 140 const FloatSize&, |
| 141 const FloatPoint&, | 141 const FloatPoint&, |
| 142 SkBlendMode, | 142 SkBlendMode, |
| 143 const FloatRect&, | 143 const FloatRect&, |
| 144 const FloatSize& repeatSpacing, | 144 const FloatSize& repeatSpacing, |
| 145 const KURL&); | 145 const KURL&); |
| 146 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, | 146 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, |
| 147 const IntSize& containerSize); | 147 const IntSize& containerSize); |
| 148 void drawInternal(SkCanvas*, | 148 void drawInternal(PaintCanvas*, |
| 149 const SkPaint&, | 149 const PaintFlags&, |
| 150 const FloatRect& fromRect, | 150 const FloatRect& fromRect, |
| 151 const FloatRect& toRect, | 151 const FloatRect& toRect, |
| 152 RespectImageOrientationEnum, | 152 RespectImageOrientationEnum, |
| 153 ImageClampingMode, | 153 ImageClampingMode, |
| 154 const KURL&); | 154 const KURL&); |
| 155 | 155 |
| 156 void stopAnimation(); | 156 void stopAnimation(); |
| 157 void scheduleTimelineRewind(); | 157 void scheduleTimelineRewind(); |
| 158 void flushPendingTimelineRewind(); | 158 void flushPendingTimelineRewind(); |
| 159 | 159 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 183 | 183 |
| 184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } | 184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } |
| 185 | 185 |
| 186 private: | 186 private: |
| 187 Image* m_image; | 187 Image* m_image; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| 191 | 191 |
| 192 #endif // SVGImage_h | 192 #endif // SVGImage_h |
| OLD | NEW |