Flutter Engine
The Flutter Engine
clip_path_layer.cc
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#include "flutter/flow/layers/clip_path_layer.h"
6
7namespace flutter {
8
9ClipPathLayer::ClipPathLayer(const SkPath& clip_path, Clip clip_behavior)
10 : ClipShapeLayer(clip_path, clip_behavior) {}
11
13 return clip_shape().getBounds();
14}
15
18}
19
20} // namespace flutter
Definition: SkPath.h:59
const SkRect & getBounds() const
Definition: SkPath.cpp:430
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
const SkRect & clip_shape_bounds() const override
ClipPathLayer(const SkPath &clip_path, Clip clip_behavior=Clip::kAntiAlias)
const ClipShape & clip_shape() const
void clipPath(const SkPath &path, bool is_aa)
Clip
Definition: layer.h:53
@ kHardEdge
Definition: layer.h:53