[Impeller] Remove some unused methods from EntityPassClipStack (#162478)

This commit is contained in:
Jason Simmons 2025-01-31 10:58:08 -08:00 committed by GitHub
parent e7a89c7ef4
commit 4226d48c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 29 deletions

View File

@ -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

View File

@ -67,12 +67,6 @@ class EntityPassClipStack {
const std::vector<ReplayResult>& 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<ClipCoverageLayer> GetClipCoverageLayers() const;