1 // Copyright 2021 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef FLUTTER_FLOW_LAYERS_FILTER_LAYER_H_ 6 #define FLUTTER_FLOW_LAYERS_FILTER_LAYER_H_ 7 8 #include "flutter/flow/layers/container_layer.h" 9 10 #include "third_party/skia/include/core/SkPaint.h" 11 12 namespace flutter { 13 14 class FilterLayer : public ContainerLayer { 15 public: FilterLayer(const SkPaint & filterPaint)16 FilterLayer(const SkPaint& filterPaint) : filterPaint_(filterPaint) {} 17 ~FilterLayer() override = default; 18 19 void Paint(PaintContext& context) const override; 20 21 private: 22 SkPaint filterPaint_; 23 24 FML_DISALLOW_COPY_AND_ASSIGN(FilterLayer); 25 }; 26 27 } // namespace flutter 28 29 #endif // FLUTTER_FLOW_LAYERS_FILTER_LAYER_H_ 30