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

Unified Diff: media/gpu/avda_codec_image.cc

Issue 2889603005: Position overlays in AVDACodecImage (Closed)
Patch Set: rebased 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698