Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 2715513009: Rename SVGPaintContext::paintSubtree to paintResourceSubtree (Closed)
Patch Set: Rename instead Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) 2013 Google Inc. All rights reserved. 6 * Copyright (C) 2013 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 transform = 175 transform =
176 makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), dstRect); 176 makeMapBetweenRects(FloatRect(FloatPoint(), viewportSize), dstRect);
177 } else { 177 } else {
178 transform.translate(dstRect.x(), dstRect.y()); 178 transform.translate(dstRect.x(), dstRect.y());
179 } 179 }
180 180
181 PaintRecordBuilder builder(dstRect); 181 PaintRecordBuilder builder(dstRect);
182 { 182 {
183 TransformRecorder transformRecorder(builder.context(), layoutObject, 183 TransformRecorder transformRecorder(builder.context(), layoutObject,
184 transform); 184 transform);
185 SVGPaintContext::paintSubtree(builder.context(), &layoutObject); 185 SVGPaintContext::paintResourceSubtree(builder.context(), &layoutObject);
186 } 186 }
187 187
188 return SkPictureImageFilter::Make(ToSkPicture(builder.endRecording()), 188 return SkPictureImageFilter::Make(ToSkPicture(builder.endRecording()),
189 dstRect); 189 dstRect);
190 } 190 }
191 191
192 sk_sp<SkImageFilter> FEImage::createImageFilter() { 192 sk_sp<SkImageFilter> FEImage::createImageFilter() {
193 if (auto* layoutObject = referencedLayoutObject()) 193 if (auto* layoutObject = referencedLayoutObject())
194 return createImageFilterForLayoutObject(*layoutObject); 194 return createImageFilterForLayoutObject(*layoutObject);
195 195
(...skipping 14 matching lines...) Expand all
210 FloatRect srcRect = FloatRect(FloatPoint(), FloatSize(m_image->size())); 210 FloatRect srcRect = FloatRect(FloatPoint(), FloatSize(m_image->size()));
211 FloatRect dstRect = filterPrimitiveSubregion(); 211 FloatRect dstRect = filterPrimitiveSubregion();
212 212
213 m_preserveAspectRatio->transformRect(dstRect, srcRect); 213 m_preserveAspectRatio->transformRect(dstRect, srcRect);
214 214
215 return SkImageSource::Make(std::move(image), srcRect, dstRect, 215 return SkImageSource::Make(std::move(image), srcRect, dstRect,
216 kHigh_SkFilterQuality); 216 kHigh_SkFilterQuality);
217 } 217 }
218 218
219 } // namespace blink 219 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698