OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
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" | |
34 #include "core/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h" | 33 #include "core/platform/graphics/cpu/arm/filters/FECompositeArithmeticNEON.h" |
| 34 #include "platform/graphics/GraphicsContext.h" |
| 35 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
35 #include "platform/text/TextStream.h" | 36 #include "platform/text/TextStream.h" |
36 #include "third_party/skia/include/core/SkDevice.h" | 37 #include "third_party/skia/include/core/SkDevice.h" |
37 | 38 |
38 #include "wtf/Uint8ClampedArray.h" | 39 #include "wtf/Uint8ClampedArray.h" |
39 | 40 |
40 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | |
41 | |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
44 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo
at k1, float k2, float k3, float k4) | 43 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo
at k1, float k2, float k3, float k4) |
45 : FilterEffect(filter) | 44 : FilterEffect(filter) |
46 , m_type(type) | 45 , m_type(type) |
47 , m_k1(k1) | 46 , m_k1(k1) |
48 , m_k2(k2) | 47 , m_k2(k2) |
49 , m_k3(k3) | 48 , m_k3(k3) |
50 , m_k4(k4) | 49 , m_k4(k4) |
51 { | 50 { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 ts << " operation=\"" << m_type << "\""; | 389 ts << " operation=\"" << m_type << "\""; |
391 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) | 390 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) |
392 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\
" k4=\"" << m_k4 << "\""; | 391 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\
" k4=\"" << m_k4 << "\""; |
393 ts << "]\n"; | 392 ts << "]\n"; |
394 inputEffect(0)->externalRepresentation(ts, indent + 1); | 393 inputEffect(0)->externalRepresentation(ts, indent + 1); |
395 inputEffect(1)->externalRepresentation(ts, indent + 1); | 394 inputEffect(1)->externalRepresentation(ts, indent + 1); |
396 return ts; | 395 return ts; |
397 } | 396 } |
398 | 397 |
399 } // namespace WebCore | 398 } // namespace WebCore |
OLD | NEW |