Index: components/display_compositor/compositor_overlay_candidate_validator_android.cc |
diff --git a/components/display_compositor/compositor_overlay_candidate_validator_android.cc b/components/display_compositor/compositor_overlay_candidate_validator_android.cc |
index b5b1c13019bd63b5c2627cc4affa57348e7332d4..a42d0355a14c67b3cbbeb5bf6d71b511fc5fca26 100644 |
--- a/components/display_compositor/compositor_overlay_candidate_validator_android.cc |
+++ b/components/display_compositor/compositor_overlay_candidate_validator_android.cc |
@@ -37,7 +37,7 @@ void CompositorOverlayCandidateValidatorAndroid::CheckOverlaySupport( |
// This quad either will be promoted, or would be if it were backed by a |
// SurfaceView. Record that it should get a promotion hint. |
- candidates->promotable_resource_hints_.insert(candidate.resource_id); |
+ candidates->AddPromotionHint(candidate); |
if (candidate.is_backed_by_surface_texture) { |
// This quad would be promoted if it were backed by a SurfaceView. Since |