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

Unified Diff: components/viz/service/hit_test/hit_test_aggregator.cc

Issue 2937233002: Use HitTestAggregator in GpuRootCompositorFrameSink (Closed)
Patch Set: remove unnecessary define and bracing Created 3 years, 5 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 | « components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/service/hit_test/hit_test_aggregator.cc
diff --git a/components/viz/service/hit_test/hit_test_aggregator.cc b/components/viz/service/hit_test/hit_test_aggregator.cc
index fbd475156dca99a1a108f005889802ff670cb2cc..49098bdfcb940c55fd1dc7810fd47a7c391cede0 100644
--- a/components/viz/service/hit_test/hit_test_aggregator.cc
+++ b/components/viz/service/hit_test/hit_test_aggregator.cc
@@ -133,7 +133,8 @@ void HitTestAggregator::Aggregate(SurfaceId display_surface_id) {
void HitTestAggregator::AppendRoot(SurfaceId surface_id) {
auto search = active_.find(surface_id);
- DCHECK(search != active_.end());
+ if (search == active_.end())
+ return;
mojom::HitTestRegionList* hit_test_region_list = search->second.get();
« no previous file with comments | « components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698