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

Side by Side Diff: Source/core/platform/graphics/filters/FEMorphology.cpp

Issue 54803002: Centralize TextStream functions to remove RenderTreeAsText dependency of the filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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) 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) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. 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 10 matching lines...) Expand all
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA. 22 * Boston, MA 02110-1301, USA.
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 26
27 #include "core/platform/graphics/filters/FEMorphology.h" 27 #include "core/platform/graphics/filters/FEMorphology.h"
28 28
29 #include "core/platform/graphics/filters/Filter.h" 29 #include "core/platform/graphics/filters/Filter.h"
30 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" 30 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h"
31 #include "core/rendering/RenderTreeAsText.h"
32 #include "platform/text/TextStream.h" 31 #include "platform/text/TextStream.h"
33 #include "wtf/ParallelJobs.h" 32 #include "wtf/ParallelJobs.h"
34 #include "wtf/Uint8ClampedArray.h" 33 #include "wtf/Uint8ClampedArray.h"
35 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
36 35
37 #include "SkMorphologyImageFilter.h" 36 #include "SkMorphologyImageFilter.h"
38 37
39 using std::min; 38 using std::min;
40 using std::max; 39 using std::max;
41 40
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 writeIndent(ts, indent); 296 writeIndent(ts, indent);
298 ts << "[feMorphology"; 297 ts << "[feMorphology";
299 FilterEffect::externalRepresentation(ts); 298 FilterEffect::externalRepresentation(ts);
300 ts << " operator=\"" << morphologyOperator() << "\" " 299 ts << " operator=\"" << morphologyOperator() << "\" "
301 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n"; 300 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n";
302 inputEffect(0)->externalRepresentation(ts, indent + 1); 301 inputEffect(0)->externalRepresentation(ts, indent + 1);
303 return ts; 302 return ts;
304 } 303 }
305 304
306 } // namespace WebCore 305 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/FEMerge.cpp ('k') | Source/core/platform/graphics/filters/FEOffset.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698