Flutter Engine
The Flutter Engine
clip_rrect_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_RRECT_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_CLIP_RRECT_LAYER_H_
7
8#include "flutter/flow/layers/clip_shape_layer.h"
9
10namespace flutter {
11
12class ClipRRectLayer : public ClipShapeLayer<SkRRect> {
13 public:
14 ClipRRectLayer(const SkRRect& clip_rrect, Clip clip_behavior);
15
16 protected:
17 const SkRect& clip_shape_bounds() const override;
18
19 void ApplyClip(LayerStateStack::MutatorContext& mutator) const override;
20
21 private:
22 FML_DISALLOW_COPY_AND_ASSIGN(ClipRRectLayer);
23};
24
25} // namespace flutter
26
27#endif // FLUTTER_FLOW_LAYERS_CLIP_RRECT_LAYER_H_
ClipRRectLayer(const SkRRect &clip_rrect, Clip clip_behavior)
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
const SkRect & clip_shape_bounds() const override
Clip
Definition: layer.h:53