From 4226d48c52e1e81764ff350ad5793365dfac2fb9 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 31 Jan 2025 10:58:08 -0800 Subject: [PATCH] [Impeller] Remove some unused methods from EntityPassClipStack (#162478) --- .../impeller/entity/entity_pass_clip_stack.cc | 23 ------------------- .../impeller/entity/entity_pass_clip_stack.h | 6 ----- 2 files changed, 29 deletions(-) diff --git a/engine/src/flutter/impeller/entity/entity_pass_clip_stack.cc b/engine/src/flutter/impeller/entity/entity_pass_clip_stack.cc index aacb65fb54..8c8f588092 100644 --- a/engine/src/flutter/impeller/entity/entity_pass_clip_stack.cc +++ b/engine/src/flutter/impeller/entity/entity_pass_clip_stack.cc @@ -210,27 +210,4 @@ EntityPassClipStack::GetReplayEntities() const { return subpass_state_.back().rendered_clip_entities; } -void EntityPassClipStack::ActivateClipReplay() { - next_replay_index_ = 0; -} - -const EntityPassClipStack::ReplayResult* -EntityPassClipStack::GetNextReplayResult(size_t current_clip_depth) { - if (next_replay_index_ >= - subpass_state_.back().rendered_clip_entities.size()) { - // No clips need to be replayed. - return nullptr; - } - ReplayResult* next_replay = - &subpass_state_.back().rendered_clip_entities[next_replay_index_]; - if (next_replay->clip_depth < current_clip_depth) { - // The next replay clip doesn't affect the current entity, so don't replay - // it yet. - return nullptr; - } - - next_replay_index_++; - return next_replay; -} - } // namespace impeller diff --git a/engine/src/flutter/impeller/entity/entity_pass_clip_stack.h b/engine/src/flutter/impeller/entity/entity_pass_clip_stack.h index b0ca57b410..9f30b1346d 100644 --- a/engine/src/flutter/impeller/entity/entity_pass_clip_stack.h +++ b/engine/src/flutter/impeller/entity/entity_pass_clip_stack.h @@ -67,12 +67,6 @@ class EntityPassClipStack { const std::vector& GetReplayEntities() const; - void ActivateClipReplay(); - - /// @brief Returns the next Entity that should be replayed. If there are no - /// enities to replay, then nullptr is returned. - const ReplayResult* GetNextReplayResult(size_t current_clip_depth); - // Visible for testing. const std::vector GetClipCoverageLayers() const;