Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: cc/surfaces/surface_dependency_tracker.cc

Issue 2880023002: cc::SurfaceDependencyTracker should not crash when a Display goes away (Closed)
Patch Set: Fix LayerTreeHostImpl unit tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_dependency_tracker.cc
diff --git a/cc/surfaces/surface_dependency_tracker.cc b/cc/surfaces/surface_dependency_tracker.cc
index 652ecfe731b3d97edb77d43b00664451f00da6bf..3b37d6ca2470f0e783af162c750e159cf6783c4d 100644
--- a/cc/surfaces/surface_dependency_tracker.cc
+++ b/cc/surfaces/surface_dependency_tracker.cc
@@ -49,8 +49,7 @@ void SurfaceDependencyTracker::RequestSurfaceResolution(Surface* surface) {
surface->surface_id());
}
- if (!blocked_surfaces_by_id_.count(surface->surface_id()))
- blocked_surfaces_by_id_.insert(surface->surface_id());
+ blocked_surfaces_by_id_.insert(surface->surface_id());
if (needs_deadline && !frames_since_deadline_set_)
frames_since_deadline_set_ = 0;
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698