break;
}
- // At this point we have no information about the quad to be rendered, that's
- // why |overlay_plane_data| is default-initialized.
+ // At this point we have no information about the quad to be rendered, so we
+ // cannot fill it with proper informations. Some platforms might struggle with
+ // rendering video into zero-size rectangle (and thus properly initializing
+ // scaler and unmute it), so start with 1x1 area.
gfx::OverlayPlaneData overlay_plane_data;
+ overlay_plane_data.display_bounds = gfx::RectF(1.0f, 1.0f);
+ overlay_plane_data.damage_rect = gfx::Rect(1920, 1080);
// Since preparing surface is done aside of normal rendering process, it's
// possible that surface is acquired by different collection. So we cannot