Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
clip_rect_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_rect_layer.h"
6
7namespace flutter {
8
9ClipRectLayer::ClipRectLayer(const SkRect& clip_rect, Clip clip_behavior)
10 : ClipShapeLayer(clip_rect, clip_behavior) {}
11
13 return clip_shape();
14}
15
19
20} // namespace flutter
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
const SkRect & clip_shape_bounds() const override
ClipRectLayer(const SkRect &clip_rect, Clip clip_behavior)
const ClipShape & clip_shape() const
void clipRect(const SkRect &rect, bool is_aa)
@ kHardEdge
Definition layer.h:52