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

Side by Side Diff: Source/core/platform/graphics/filters/FEComposite.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 15 matching lines...) Expand all
26 26
27 #include "core/platform/graphics/filters/FEComposite.h" 27 #include "core/platform/graphics/filters/FEComposite.h"
28 28
29 #include "SkArithmeticMode.h" 29 #include "SkArithmeticMode.h"
30 #include "SkFlattenableBuffers.h" 30 #include "SkFlattenableBuffers.h"
31 #include "SkXfermodeImageFilter.h" 31 #include "SkXfermodeImageFilter.h"
32 32
33 #include "core/platform/graphics/GraphicsContext.h" 33 #include "core/platform/graphics/GraphicsContext.h"
34 #include "core/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h" 34 #include "core/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h"
35 #include "core/platform/graphics/filters/Filter.h" 35 #include "core/platform/graphics/filters/Filter.h"
36 #include "core/rendering/RenderTreeAsText.h"
37 #include "platform/text/TextStream.h" 36 #include "platform/text/TextStream.h"
38 #include "third_party/skia/include/core/SkDevice.h" 37 #include "third_party/skia/include/core/SkDevice.h"
39 38
40 #include "wtf/Uint8ClampedArray.h" 39 #include "wtf/Uint8ClampedArray.h"
41 40
42 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" 41 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h"
43 42
44 namespace WebCore { 43 namespace WebCore {
45 44
46 class CompositeImageFilter : public SkImageFilter { 45 class CompositeImageFilter : public SkImageFilter {
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 ts << " operation=\"" << m_type << "\""; 451 ts << " operation=\"" << m_type << "\"";
453 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) 452 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC)
454 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\ " k4=\"" << m_k4 << "\""; 453 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\ " k4=\"" << m_k4 << "\"";
455 ts << "]\n"; 454 ts << "]\n";
456 inputEffect(0)->externalRepresentation(ts, indent + 1); 455 inputEffect(0)->externalRepresentation(ts, indent + 1);
457 inputEffect(1)->externalRepresentation(ts, indent + 1); 456 inputEffect(1)->externalRepresentation(ts, indent + 1);
458 return ts; 457 return ts;
459 } 458 }
460 459
461 } // namespace WebCore 460 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698