OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "core/rendering/FilterEffectRenderer.h" | 29 #include "core/rendering/FilterEffectRenderer.h" |
30 | 30 |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/platform/FloatConversion.h" | 32 #include "core/platform/FloatConversion.h" |
33 #include "core/platform/graphics/ColorSpace.h" | 33 #include "core/platform/graphics/ColorSpace.h" |
34 #include "core/platform/graphics/filters/FEColorMatrix.h" | 34 #include "core/platform/graphics/filters/FEColorMatrix.h" |
35 #include "core/platform/graphics/filters/FEComponentTransfer.h" | 35 #include "core/platform/graphics/filters/FEComponentTransfer.h" |
36 #include "core/platform/graphics/filters/FEDropShadow.h" | 36 #include "core/platform/graphics/filters/FEDropShadow.h" |
37 #include "core/platform/graphics/filters/FEGaussianBlur.h" | 37 #include "core/platform/graphics/filters/FEGaussianBlur.h" |
38 #include "core/platform/graphics/filters/FEMerge.h" | |
39 #include "core/rendering/RenderLayer.h" | 38 #include "core/rendering/RenderLayer.h" |
40 | 39 |
41 #include <algorithm> | 40 #include <algorithm> |
42 #include <wtf/MathExtras.h> | 41 #include <wtf/MathExtras.h> |
43 | 42 |
44 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h" | 43 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h" |
45 #include "core/platform/graphics/filters/custom/CustomFilterOperation.h" | |
46 #include "core/platform/graphics/filters/custom/CustomFilterProgram.h" | |
47 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h" | 44 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h" |
48 #include "core/platform/graphics/filters/custom/FECustomFilter.h" | 45 #include "core/platform/graphics/filters/custom/FECustomFilter.h" |
49 #include "core/platform/graphics/filters/custom/ValidatedCustomFilterOperation.h
" | 46 #include "core/platform/graphics/filters/custom/ValidatedCustomFilterOperation.h
" |
50 #include "core/rendering/RenderView.h" | 47 #include "core/rendering/RenderView.h" |
51 | 48 |
52 #if ENABLE(SVG) | 49 #if ENABLE(SVG) |
53 #include "SVGNames.h" | 50 #include "SVGNames.h" |
54 #include "core/loader/cache/CachedSVGDocument.h" | 51 #include "core/loader/cache/CachedSVGDocument.h" |
55 #include "core/loader/cache/CachedSVGDocumentReference.h" | 52 #include "core/loader/cache/CachedSVGDocumentReference.h" |
56 #include "core/platform/graphics/filters/SourceAlpha.h" | 53 #include "core/platform/graphics/filters/SourceAlpha.h" |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 // Get the filtered output and draw it in place. | 502 // Get the filtered output and draw it in place. |
506 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren
derer()->style()->colorSpace(), filter->outputRect(), CompositeSourceOver); | 503 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren
derer()->style()->colorSpace(), filter->outputRect(), CompositeSourceOver); |
507 | 504 |
508 filter->clearIntermediateResults(); | 505 filter->clearIntermediateResults(); |
509 | 506 |
510 return m_savedGraphicsContext; | 507 return m_savedGraphicsContext; |
511 } | 508 } |
512 | 509 |
513 } // namespace WebCore | 510 } // namespace WebCore |
514 | 511 |
OLD | NEW |