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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const FloatRect&, | 147 const FloatRect&, |
148 const FloatSize& repeat_spacing, | 148 const FloatSize& repeat_spacing, |
149 const KURL&); | 149 const KURL&); |
150 sk_sp<SkImage> ImageForCurrentFrameForContainer( | 150 sk_sp<SkImage> ImageForCurrentFrameForContainer( |
151 const KURL&, | 151 const KURL&, |
152 const IntSize& container_size); | 152 const IntSize& container_size); |
153 | 153 |
154 // Paints the current frame. If a PaintCanvas is passed, paints into that | 154 // Paints the current frame. If a PaintCanvas is passed, paints into that |
155 // canvas and returns nullptr. | 155 // canvas and returns nullptr. |
156 // Otherwise returns a pointer to the new PaintRecord. | 156 // Otherwise returns a pointer to the new PaintRecord. |
157 sk_sp<PaintRecord> PaintRecordForCurrentFrame(const FloatRect& bounds, | 157 sk_sp<PaintRecord> PaintRecordForCurrentFrame(const IntRect& bounds, |
158 const KURL&, | 158 const KURL&, |
159 PaintCanvas* = nullptr); | 159 PaintCanvas* = nullptr); |
160 | 160 |
161 void DrawInternal(PaintCanvas*, | 161 void DrawInternal(PaintCanvas*, |
162 const PaintFlags&, | 162 const PaintFlags&, |
163 const FloatRect& from_rect, | 163 const FloatRect& from_rect, |
164 const FloatRect& to_rect, | 164 const FloatRect& to_rect, |
165 RespectImageOrientationEnum, | 165 RespectImageOrientationEnum, |
166 ImageClampingMode, | 166 ImageClampingMode, |
167 const KURL&); | 167 const KURL&); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 ~ImageObserverDisabler() { image_->SetImageObserverDisabled(false); } | 227 ~ImageObserverDisabler() { image_->SetImageObserverDisabled(false); } |
228 | 228 |
229 private: | 229 private: |
230 Image* image_; | 230 Image* image_; |
231 }; | 231 }; |
232 | 232 |
233 } // namespace blink | 233 } // namespace blink |
234 | 234 |
235 #endif // SVGImage_h | 235 #endif // SVGImage_h |
OLD | NEW |