[Impeller] Remove some unused methods from EntityPassClipStack (#162478)
This commit is contained in:
parent
e7a89c7ef4
commit
4226d48c52
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user