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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.cpp

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, 197 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground,
198 GlobalPaintNormalPhase, PaintLayerNoFlag); 198 GlobalPaintNormalPhase, PaintLayerNoFlag);
199 item->paint(info, IntPoint()); 199 item->paint(info, IntPoint());
200 } 200 }
201 201
202 bool SVGPaintContext::paintForLayoutObject( 202 bool SVGPaintContext::paintForLayoutObject(
203 const PaintInfo& paintInfo, 203 const PaintInfo& paintInfo,
204 const ComputedStyle& style, 204 const ComputedStyle& style,
205 const LayoutObject& layoutObject, 205 const LayoutObject& layoutObject,
206 LayoutSVGResourceMode resourceMode, 206 LayoutSVGResourceMode resourceMode,
207 SkPaint& paint, 207 CdlPaint& paint,
208 const AffineTransform* additionalPaintServerTransform) { 208 const AffineTransform* additionalPaintServerTransform) {
209 if (paintInfo.isRenderingClipPathAsMaskImage()) { 209 if (paintInfo.isRenderingClipPathAsMaskImage()) {
210 if (resourceMode == ApplyToStrokeMode) 210 if (resourceMode == ApplyToStrokeMode)
211 return false; 211 return false;
212 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb()); 212 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb());
213 paint.setShader(nullptr); 213 paint.setShader(nullptr);
214 return true; 214 return true;
215 } 215 }
216 216
217 SVGPaintServer paintServer = 217 SVGPaintServer paintServer =
(...skipping 22 matching lines...) Expand all
240 // though. 240 // though.
241 // Additionally, it's not really safe/guaranteed to be correct, as 241 // Additionally, it's not really safe/guaranteed to be correct, as
242 // something down the paint pipe may want to farther tweak the color 242 // something down the paint pipe may want to farther tweak the color
243 // filter, which could yield incorrect results. (Consider just using 243 // filter, which could yield incorrect results. (Consider just using
244 // saveLayer() w/ this color filter explicitly instead.) 244 // saveLayer() w/ this color filter explicitly instead.)
245 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); 245 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter()));
246 return true; 246 return true;
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.h ('k') | third_party/WebKit/Source/core/paint/SVGShapePainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698