Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 06cbda0

Browse files
author
jonahwilliams
committed
use dcheck
1 parent be9be26 commit 06cbda0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

impeller/aiks/experimental_canvas.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void ExperimentalCanvas::Save(uint32_t total_content_depth) {
310310
entry.cull_rect = transform_stack_.back().cull_rect;
311311
entry.clip_depth = current_depth_ + total_content_depth;
312312
entry.distributed_opacity = transform_stack_.back().distributed_opacity;
313-
FML_CHECK(entry.clip_depth <= transform_stack_.back().clip_depth)
313+
FML_DCHECK(entry.clip_depth <= transform_stack_.back().clip_depth)
314314
<< entry.clip_depth << " <=? " << transform_stack_.back().clip_depth
315315
<< " after allocating " << total_content_depth;
316316
entry.clip_height = transform_stack_.back().clip_height;
@@ -460,7 +460,7 @@ void ExperimentalCanvas::SaveLayer(
460460
entry.transform = transform_stack_.back().transform;
461461
entry.cull_rect = transform_stack_.back().cull_rect;
462462
entry.clip_depth = current_depth_ + total_content_depth;
463-
FML_CHECK(entry.clip_depth <= transform_stack_.back().clip_depth)
463+
FML_DCHECK(entry.clip_depth <= transform_stack_.back().clip_depth)
464464
<< entry.clip_depth << " <=? " << transform_stack_.back().clip_depth
465465
<< " after allocating " << total_content_depth;
466466
entry.clip_height = transform_stack_.back().clip_height;
@@ -513,7 +513,7 @@ bool ExperimentalCanvas::Restore() {
513513
// to be overly conservative, but we need to jump the depth to
514514
// the clip depth so that the next rendering op will get a
515515
// larger depth (it will pre-increment the current_depth_ value).
516-
FML_CHECK(current_depth_ <= transform_stack_.back().clip_depth)
516+
FML_DCHECK(current_depth_ <= transform_stack_.back().clip_depth)
517517
<< current_depth_ << " <=? " << transform_stack_.back().clip_depth;
518518
current_depth_ = transform_stack_.back().clip_depth;
519519

@@ -747,7 +747,7 @@ void ExperimentalCanvas::AddRenderEntityToCurrentPass(Entity entity,
747747
// We can render at a depth up to and including the depth of the currently
748748
// active clips and we will still be clipped out, but we cannot render at
749749
// a depth that is greater than the current clips or we will not be clipped.
750-
FML_CHECK(current_depth_ <= transform_stack_.back().clip_depth)
750+
FML_DCHECK(current_depth_ <= transform_stack_.back().clip_depth)
751751
<< current_depth_ << " <=? " << transform_stack_.back().clip_depth;
752752
entity.SetClipDepth(current_depth_);
753753

@@ -819,7 +819,7 @@ void ExperimentalCanvas::AddClipEntityToCurrentPass(Entity entity) {
819819
// to know if a clip will actually be used in advance of storing it in
820820
// the DisplayList buffer.
821821
// See https://github.com/flutter/flutter/issues/147021
822-
FML_CHECK(current_depth_ <= transform_stack_.back().clip_depth)
822+
FML_DCHECK(current_depth_ <= transform_stack_.back().clip_depth)
823823
<< current_depth_ << " <=? " << transform_stack_.back().clip_depth;
824824
entity.SetClipDepth(transform_stack_.back().clip_depth);
825825

0 commit comments

Comments
 (0)