Remove GrFragmentProcessor::addAndPushFlagToChildren, dead code

The last flag that was pushed down was removed here:
https://skia-review.googlesource.com/c/skia/+/435018

Bug: skia:12198
Change-Id: Ia184d6a03fe4078e00dd92d9d3cd87596d0c0fcd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/436999
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
Brian Salomon 2021-08-06 15:41:55 -04:00 committed by SkCQ
parent 07cce00ce8
commit ca13a3acc4
2 changed files with 0 additions and 18 deletions

View File

@ -122,23 +122,6 @@ std::unique_ptr<GrGLSLFragmentProcessor> GrFragmentProcessor::makeProgramImpl()
return glFragProc;
}
void GrFragmentProcessor::addAndPushFlagToChildren(PrivateFlags flag) {
// This propagates down, so if we've already marked it, all our children should have it too
if (!(fFlags & flag)) {
fFlags |= flag;
for (auto& child : fChildProcessors) {
if (child) {
child->addAndPushFlagToChildren(flag);
}
}
}
#ifdef SK_DEBUG
for (auto& child : fChildProcessors) {
SkASSERT(!child || (child->fFlags & flag));
}
#endif
}
int GrFragmentProcessor::numNonNullChildProcessors() const {
return std::count_if(fChildProcessors.begin(), fChildProcessors.end(),
[](const auto& c) { return c != nullptr; });

View File

@ -465,7 +465,6 @@ private:
// Propagates up the FP tree to the root.
kWillReadDstColor_Flag = kFirstPrivateFlag << 3,
};
void addAndPushFlagToChildren(PrivateFlags flag);
SkSTArray<1, std::unique_ptr<GrFragmentProcessor>, true> fChildProcessors;
const GrFragmentProcessor* fParent = nullptr;