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) 2012 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 WebCoreCompositeToSkiaComposite(CompositeSourceOver, m_mode); | 58 WebCoreCompositeToSkiaComposite(CompositeSourceOver, m_mode); |
59 SkImageFilter::CropRect cropRect = getCropRect(); | 59 SkImageFilter::CropRect cropRect = getCropRect(); |
60 return SkXfermodeImageFilter::Make(mode, std::move(background), | 60 return SkXfermodeImageFilter::Make(mode, std::move(background), |
61 std::move(foreground), &cropRect); | 61 std::move(foreground), &cropRect); |
62 } | 62 } |
63 | 63 |
64 TextStream& FEBlend::externalRepresentation(TextStream& ts, int indent) const { | 64 TextStream& FEBlend::externalRepresentation(TextStream& ts, int indent) const { |
65 writeIndent(ts, indent); | 65 writeIndent(ts, indent); |
66 ts << "[feBlend"; | 66 ts << "[feBlend"; |
67 FilterEffect::externalRepresentation(ts); | 67 FilterEffect::externalRepresentation(ts); |
68 ts << " mode=\"" << (m_mode == WebBlendModeNormal | 68 ts << " mode=\"" |
69 ? "normal" | 69 << (m_mode == WebBlendModeNormal |
70 : compositeOperatorName(CompositeSourceOver, m_mode)) | 70 ? "normal" |
| 71 : compositeOperatorName(CompositeSourceOver, m_mode)) |
71 << "\"]\n"; | 72 << "\"]\n"; |
72 inputEffect(0)->externalRepresentation(ts, indent + 1); | 73 inputEffect(0)->externalRepresentation(ts, indent + 1); |
73 inputEffect(1)->externalRepresentation(ts, indent + 1); | 74 inputEffect(1)->externalRepresentation(ts, indent + 1); |
74 return ts; | 75 return ts; |
75 } | 76 } |
76 | 77 |
77 } // namespace blink | 78 } // namespace blink |
OLD | NEW |