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