Flutter Engine
The Flutter Engine
clip_path_layer.h
Go to the documentation of this file.
1// Copyright 2013 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_CLIP_PATH_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_CLIP_PATH_LAYER_H_
7
8#include "flutter/flow/layers/clip_shape_layer.h"
9
10namespace flutter {
11
12class ClipPathLayer : public ClipShapeLayer<SkPath> {
13 public:
14 explicit ClipPathLayer(const SkPath& clip_path,
16
17 protected:
18 const SkRect& clip_shape_bounds() const override;
19
20 void ApplyClip(LayerStateStack::MutatorContext& mutator) const override;
21
22 private:
23 FML_DISALLOW_COPY_AND_ASSIGN(ClipPathLayer);
24};
25
26} // namespace flutter
27
28#endif // FLUTTER_FLOW_LAYERS_CLIP_PATH_LAYER_H_
Definition: SkPath.h:59
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
const SkRect & clip_shape_bounds() const override
ClipPathLayer(const SkPath &clip_path, Clip clip_behavior=Clip::kAntiAlias)
Clip
Definition: layer.h:53
@ kAntiAlias
Definition: layer.h:53