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:
parent
07cce00ce8
commit
ca13a3acc4
@ -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; });
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user