fix(wayland): fix function instrumentation
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -11,7 +11,6 @@ use bevy_dmabuf::{
|
||||
use drm_fourcc::DrmFourcc;
|
||||
use mint::Vector2;
|
||||
use parking_lot::Mutex;
|
||||
use tracing::info;
|
||||
use std::sync::{Arc, OnceLock};
|
||||
use waynest::server::protocol::stable::linux_dmabuf_v1::zwp_linux_buffer_params_v1::Flags;
|
||||
|
||||
@@ -40,7 +39,7 @@ impl std::fmt::Debug for DmabufBacking {
|
||||
}
|
||||
|
||||
impl DmabufBacking {
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
pub fn new(
|
||||
params: Arc<BufferParams>,
|
||||
message_sink: Option<MessageSink>,
|
||||
@@ -76,13 +75,12 @@ impl DmabufBacking {
|
||||
})
|
||||
}
|
||||
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
pub fn update_tex(
|
||||
&self,
|
||||
dmatexes: &ImportedDmatexs,
|
||||
images: &mut Assets<Image>,
|
||||
) -> Option<Handle<Image>> {
|
||||
info!("updating dmabuf tex");
|
||||
self.pending_imported_dmatex
|
||||
.lock()
|
||||
.take()
|
||||
|
||||
@@ -30,7 +30,7 @@ pub struct BufferParams {
|
||||
}
|
||||
|
||||
impl BufferParams {
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
pub fn new(id: ObjectId) -> Self {
|
||||
tracing::info!("Creating new BufferParams with id {:?}", id);
|
||||
Self {
|
||||
@@ -46,7 +46,7 @@ impl ZwpLinuxBufferParamsV1 for BufferParams {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
async fn add(
|
||||
&self,
|
||||
_client: &mut Client,
|
||||
@@ -91,7 +91,7 @@ impl ZwpLinuxBufferParamsV1 for BufferParams {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
async fn create(
|
||||
&self,
|
||||
client: &mut Client,
|
||||
@@ -126,7 +126,7 @@ impl ZwpLinuxBufferParamsV1 for BufferParams {
|
||||
}
|
||||
}
|
||||
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
async fn create_immed(
|
||||
&self,
|
||||
client: &mut Client,
|
||||
@@ -154,7 +154,7 @@ impl ZwpLinuxBufferParamsV1 for BufferParams {
|
||||
}
|
||||
|
||||
impl Drop for BufferParams {
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
fn drop(&mut self) {
|
||||
let planes = self.planes.get_mut();
|
||||
tracing::info!("BufferParams being dropped with {} planes", planes.len());
|
||||
|
||||
@@ -19,7 +19,7 @@ use waynest::{
|
||||
#[derive(Debug, Dispatcher)]
|
||||
pub struct DmabufFeedback(pub Arc<Dmabuf>);
|
||||
impl DmabufFeedback {
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
pub async fn send_params(&self, client: &mut Client, sender_id: ObjectId) -> Result<()> {
|
||||
let num_formats = self.0.formats.len();
|
||||
// Send format table first
|
||||
@@ -60,7 +60,7 @@ impl DmabufFeedback {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tracing::instrument("debug", skip_all)]
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
pub async fn send_format_table(&self, client: &mut Client, sender_id: ObjectId) -> Result<()> {
|
||||
// Format + modifier pair (16 bytes):
|
||||
// - format: u32
|
||||
|
||||
Reference in New Issue
Block a user