void CUnionDirtyRegionSolver::Solve(const CDirtyRegionList &input, CDirtyRegionList &output) { CDirtyRegion unifiedRegion; for (unsigned int i = 0; i < input.size(); i++) unifiedRegion.Union(input[i]); if (!unifiedRegion.IsEmpty()) output.push_back(unifiedRegion); }
void CDirtyRegionTracker::MarkDirtyRegion(const CDirtyRegion ®ion) { if (!region.IsEmpty()) m_markedRegions.push_back(region); }