Flutter Engine
Loading...
Searching...
No Matches
clip_rsuperellipse_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_rsuperellipse_layer.h
"
6
7
namespace
flutter
{
8
9
ClipRSuperellipseLayer::ClipRSuperellipseLayer
(
10
const
DlRoundSuperellipse
& clip_rsuperellipse,
11
Clip
clip_behavior)
12
:
ClipShapeLayer
(clip_rsuperellipse, clip_behavior) {}
13
14
const
DlRect
ClipRSuperellipseLayer::clip_shape_bounds
()
const
{
15
return
clip_shape
().
GetBounds
();
16
}
17
18
void
ClipRSuperellipseLayer::ApplyClip
(
19
LayerStateStack::MutatorContext
& mutator)
const
{
20
mutator.
clipRSuperellipse
(
clip_shape
(),
clip_behavior
() !=
Clip::kHardEdge
);
21
}
22
23
}
// namespace flutter
flutter::ClipRSuperellipseLayer::ApplyClip
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
Definition
clip_rsuperellipse_layer.cc:18
flutter::ClipRSuperellipseLayer::clip_shape_bounds
const DlRect clip_shape_bounds() const override
Definition
clip_rsuperellipse_layer.cc:14
flutter::ClipRSuperellipseLayer::ClipRSuperellipseLayer
ClipRSuperellipseLayer(const DlRoundSuperellipse &clip_rsuperellipse, Clip clip_behavior)
Definition
clip_rsuperellipse_layer.cc:9
flutter::ClipShapeLayer
Definition
clip_shape_layer.h:15
flutter::ClipShapeLayer< DlRoundSuperellipse >::clip_behavior
Clip clip_behavior() const
Definition
clip_shape_layer.h:113
flutter::ClipShapeLayer< DlRoundSuperellipse >::clip_shape
const ClipShape & clip_shape() const
Definition
clip_shape_layer.h:112
flutter::LayerStateStack::MutatorContext
Definition
layer_state_stack.h:156
flutter::LayerStateStack::MutatorContext::clipRSuperellipse
void clipRSuperellipse(const DlRoundSuperellipse &rse, bool is_aa)
Definition
layer_state_stack.cc:606
clip_rsuperellipse_layer.h
flutter
Definition
asset_manager.cc:10
flutter::Clip
Clip
Definition
layer.h:43
flutter::kHardEdge
@ kHardEdge
Definition
layer.h:43
impeller::RoundSuperellipse
Definition
round_superellipse.h:18
impeller::RoundSuperellipse::GetBounds
constexpr const Rect & GetBounds() const
Definition
round_superellipse.h:49
impeller::TRect< Scalar >
flow
layers
clip_rsuperellipse_layer.cc
Generated on Thu Nov 6 2025 16:11:21 for Flutter Engine by
1.9.8