OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/paint/SVGFilterPainter.h" | 6 #include "core/paint/SVGFilterPainter.h" |
7 | 7 |
8 #include "core/layout/PaintInfo.h" | 8 #include "core/layout/PaintInfo.h" |
9 #include "core/layout/svg/LayoutSVGResourceFilter.h" | 9 #include "core/layout/svg/LayoutSVGResourceFilter.h" |
10 #include "core/paint/CompositingRecorder.h" | 10 #include "core/paint/CompositingRecorder.h" |
11 #include "core/paint/LayoutObjectDrawingRecorder.h" | 11 #include "core/paint/LayoutObjectDrawingRecorder.h" |
12 #include "core/paint/TransformRecorder.h" | 12 #include "core/paint/TransformRecorder.h" |
13 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" | 13 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
14 #include "platform/graphics/filters/SourceAlpha.h" | |
15 #include "platform/graphics/filters/SourceGraphic.h" | 14 #include "platform/graphics/filters/SourceGraphic.h" |
16 #include "platform/graphics/paint/CompositingDisplayItem.h" | 15 #include "platform/graphics/paint/CompositingDisplayItem.h" |
17 #include "platform/graphics/paint/DisplayItemList.h" | 16 #include "platform/graphics/paint/DisplayItemList.h" |
18 #include "platform/graphics/paint/DrawingDisplayItem.h" | 17 #include "platform/graphics/paint/DrawingDisplayItem.h" |
19 | 18 |
20 namespace blink { | 19 namespace blink { |
21 | 20 |
22 static GraphicsContext* beginRecordingContent(GraphicsContext* context, FilterDa
ta* filterData) | 21 static GraphicsContext* beginRecordingContent(GraphicsContext* context, FilterDa
ta* filterData) |
23 { | 22 { |
24 ASSERT(filterData->m_state == FilterData::Initial); | 23 ASSERT(filterData->m_state == FilterData::Initial); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 190 |
192 LayoutObjectDrawingRecorder recorder(*context, object, DisplayItem::SVGFilte
r, LayoutRect::infiniteIntRect()); | 191 LayoutObjectDrawingRecorder recorder(*context, object, DisplayItem::SVGFilte
r, LayoutRect::infiniteIntRect()); |
193 if (recorder.canUseCachedDrawing()) | 192 if (recorder.canUseCachedDrawing()) |
194 return; | 193 return; |
195 | 194 |
196 if (filterData && filterData->m_state == FilterData::ReadyToPaint) | 195 if (filterData && filterData->m_state == FilterData::ReadyToPaint) |
197 paintFilteredContent(context, filterData, toSVGFilterElement(m_filter.el
ement())); | 196 paintFilteredContent(context, filterData, toSVGFilterElement(m_filter.el
ement())); |
198 } | 197 } |
199 | 198 |
200 } | 199 } |
OLD | NEW |