Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
19
20} // namespace flutter
const SkRect & getBounds() const
Definition SkPath.cpp:420
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)
@ kHardEdge
Definition layer.h:52