| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/paint/FilterPainter.h" | 5 #include "core/paint/FilterPainter.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/paint/FilterEffectBuilder.h" | 8 #include "core/paint/FilterEffectBuilder.h" |
| 8 #include "core/paint/LayerClipRecorder.h" | 9 #include "core/paint/LayerClipRecorder.h" |
| 9 #include "core/paint/PaintLayer.h" | 10 #include "core/paint/PaintLayer.h" |
| 10 #include "platform/RuntimeEnabledFeatures.h" | 11 #include "platform/RuntimeEnabledFeatures.h" |
| 11 #include "platform/graphics/CompositorFilterOperations.h" | 12 #include "platform/graphics/CompositorFilterOperations.h" |
| 12 #include "platform/graphics/GraphicsContext.h" | 13 #include "platform/graphics/GraphicsContext.h" |
| 13 #include "platform/graphics/GraphicsLayer.h" | 14 #include "platform/graphics/GraphicsLayer.h" |
| 14 #include "platform/graphics/filters/FilterEffect.h" | 15 #include "platform/graphics/filters/FilterEffect.h" |
| 15 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" | 16 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
| 16 #include "platform/graphics/paint/FilterDisplayItem.h" | 17 #include "platform/graphics/paint/FilterDisplayItem.h" |
| 17 #include "platform/graphics/paint/PaintController.h" | 18 #include "platform/graphics/paint/PaintController.h" |
| 18 #include "wtf/PtrUtil.h" | 19 #include "wtf/PtrUtil.h" |
| 19 #include <memory> | |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 FilterPainter::FilterPainter(PaintLayer& layer, | 23 FilterPainter::FilterPainter(PaintLayer& layer, |
| 24 GraphicsContext& context, | 24 GraphicsContext& context, |
| 25 const LayoutPoint& offsetFromRoot, | 25 const LayoutPoint& offsetFromRoot, |
| 26 const ClipRect& clipRect, | 26 const ClipRect& clipRect, |
| 27 PaintLayerPaintingInfo& paintingInfo, | 27 PaintLayerPaintingInfo& paintingInfo, |
| 28 PaintLayerFlags paintFlags) | 28 PaintLayerFlags paintFlags) |
| 29 : m_filterInProgress(false), | 29 : m_filterInProgress(false), |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 | 89 |
| 90 FilterPainter::~FilterPainter() { | 90 FilterPainter::~FilterPainter() { |
| 91 if (!m_filterInProgress) | 91 if (!m_filterInProgress) |
| 92 return; | 92 return; |
| 93 | 93 |
| 94 m_context.getPaintController().endItem<EndFilterDisplayItem>(*m_layoutObject); | 94 m_context.getPaintController().endItem<EndFilterDisplayItem>(*m_layoutObject); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| OLD | NEW |