Index: media/gpu/avda_codec_image.cc |
diff --git a/media/gpu/avda_codec_image.cc b/media/gpu/avda_codec_image.cc |
index 64269c7b28c1f0905f65f1652cdadb87b97ceac7..61e91e773af3895b38799290a6871ac1803b4ebc 100644 |
--- a/media/gpu/avda_codec_image.cc |
+++ b/media/gpu/avda_codec_image.cc |
@@ -91,6 +91,12 @@ bool AVDACodecImage::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
return false; |
} |
+ // Move the overlay if needed. |
+ if (shared_state_->overlay() && most_recent_bounds_ != bounds_rect) { |
+ most_recent_bounds_ = bounds_rect; |
+ shared_state_->overlay()->ScheduleLayout(bounds_rect); |
+ } |
+ |
UpdateSurface(UpdateMode::RENDER_TO_FRONT_BUFFER); |
return true; |
} |