mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 705559. Part 4: Speed up AddDependencyOnSource by exiting early when we already have the dependency. r=bas
This commit is contained in:
parent
f7fb3da105
commit
b6f282fb4f
@ -249,7 +249,7 @@ DrawTargetD2D::Flush()
|
||||
void
|
||||
DrawTargetD2D::AddDependencyOnSource(SourceSurfaceD2DTarget* aSource)
|
||||
{
|
||||
if (aSource->mDrawTarget) {
|
||||
if (aSource->mDrawTarget && !mDependingOnTargets.count(aSource->mDrawTarget)) {
|
||||
aSource->mDrawTarget->mDependentTargets.insert(this);
|
||||
mDependingOnTargets.insert(aSource->mDrawTarget);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user