mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
DCHECK that clip layer's behavior isn't none (#7659)
This will further guard that the framework won't forget to set the clip behavior. This has been tested with the flutter/flutter framework `flutter test --local-engine=host_debug_unopt` to ensure a successful engine roll.
This commit is contained in:
parent
eaae8a67bc
commit
4812a2af11
@ -13,7 +13,9 @@
|
||||
namespace flow {
|
||||
|
||||
ClipPathLayer::ClipPathLayer(Clip clip_behavior)
|
||||
: clip_behavior_(clip_behavior) {}
|
||||
: clip_behavior_(clip_behavior) {
|
||||
FML_DCHECK(clip_behavior != Clip::none);
|
||||
}
|
||||
|
||||
ClipPathLayer::~ClipPathLayer() = default;
|
||||
|
||||
|
||||
@ -7,7 +7,9 @@
|
||||
namespace flow {
|
||||
|
||||
ClipRectLayer::ClipRectLayer(Clip clip_behavior)
|
||||
: clip_behavior_(clip_behavior) {}
|
||||
: clip_behavior_(clip_behavior) {
|
||||
FML_DCHECK(clip_behavior != Clip::none);
|
||||
}
|
||||
|
||||
ClipRectLayer::~ClipRectLayer() = default;
|
||||
|
||||
|
||||
@ -7,7 +7,9 @@
|
||||
namespace flow {
|
||||
|
||||
ClipRRectLayer::ClipRRectLayer(Clip clip_behavior)
|
||||
: clip_behavior_(clip_behavior) {}
|
||||
: clip_behavior_(clip_behavior) {
|
||||
FML_DCHECK(clip_behavior != Clip::none);
|
||||
}
|
||||
|
||||
ClipRRectLayer::~ClipRRectLayer() = default;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user