Flutter Engine
The Flutter Engine
clip_rrect_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_rrect_layer.h"
6
7namespace flutter {
8
9ClipRRectLayer::ClipRRectLayer(const SkRRect& clip_rrect, Clip clip_behavior)
10 : ClipShapeLayer(clip_rrect, clip_behavior) {}
11
13 return clip_shape().getBounds();
14}
15
18}
19
20} // namespace flutter
const SkRect & getBounds() const
Definition: SkRRect.h:279
ClipRRectLayer(const SkRRect &clip_rrect, Clip clip_behavior)
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
const SkRect & clip_shape_bounds() const override
const ClipShape & clip_shape() const
void clipRRect(const SkRRect &rrect, bool is_aa)
Clip
Definition: layer.h:53
@ kHardEdge
Definition: layer.h:53