#ifndef FLUTTER_FLOW_OHOS_LAYERS_CLIP_PATH_LAYER_H
#define FLUTTER_FLOW_OHOS_LAYERS_CLIP_PATH_LAYER_H
#include "include/core/SkPath.h"
#include "flutter/flow/ohos_layers/container_layer.h"
namespace flutter::OHOS {
class ClipPathLayer : public ContainerLayer {
public:
ClipPathLayer(const SkPath& clipPath, Clip clipBehavior) : clipPath_(clipPath), clipBehavior_(clipBehavior) {}
~ClipPathLayer() override = default;
void Prepare(const SkMatrix& matrix) override;
void Paint(const PaintContext& paintContext) const override;
private:
SkPath clipPath_;
Clip clipBehavior_;
FML_DISALLOW_COPY_AND_ASSIGN(ClipPathLayer);
};
}
#endif