debug: Fix compilation
This commit is contained in:
parent
56e6ad8953
commit
2fa14d8c58
4 changed files with 8 additions and 8 deletions
|
|
@ -766,7 +766,7 @@ impl Surface {
|
||||||
&self.output,
|
&self.output,
|
||||||
false,
|
false,
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
&mut self.fps,
|
Some(&mut self.fps),
|
||||||
) {
|
) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
surface
|
surface
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ pub fn render_output<R>(
|
||||||
state: &mut Common,
|
state: &mut Common,
|
||||||
output: &Output,
|
output: &Output,
|
||||||
hardware_cursor: bool,
|
hardware_cursor: bool,
|
||||||
#[cfg(feature = "debug")] fps: Option<&mut Fps>,
|
#[cfg(feature = "debug")] mut fps: Option<&mut Fps>,
|
||||||
) -> Result<Option<Vec<Rectangle<i32, Physical>>>, RenderError<R>>
|
) -> Result<Option<Vec<Rectangle<i32, Physical>>>, RenderError<R>>
|
||||||
where
|
where
|
||||||
R: Renderer + ImportAll + AsGles2Renderer,
|
R: Renderer + ImportAll + AsGles2Renderer,
|
||||||
|
|
@ -158,7 +158,7 @@ where
|
||||||
CustomElem: RenderElement<R>,
|
CustomElem: RenderElement<R>,
|
||||||
{
|
{
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
{
|
if let Some(ref mut fps) = fps {
|
||||||
fps.start();
|
fps.start();
|
||||||
}
|
}
|
||||||
let workspace = state.shell.active_space(output);
|
let workspace = state.shell.active_space(output);
|
||||||
|
|
@ -170,7 +170,7 @@ where
|
||||||
}
|
}
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
{
|
{
|
||||||
render_fullscreen(gpu, renderer, window, state, output, hardware_cursor, fps)
|
render_fullscreen(gpu, renderer, window, state, output, hardware_cursor, fps.as_deref_mut())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#[cfg(not(feature = "debug"))]
|
#[cfg(not(feature = "debug"))]
|
||||||
|
|
@ -179,12 +179,12 @@ where
|
||||||
}
|
}
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
{
|
{
|
||||||
render_desktop(gpu, renderer, age, state, output, hardware_cursor, fps)
|
render_desktop(gpu, renderer, age, state, output, hardware_cursor, fps.as_deref_mut())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
{
|
if let Some(ref mut fps) = fps {
|
||||||
fps.end();
|
fps.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ impl WinitState {
|
||||||
&self.output,
|
&self.output,
|
||||||
true,
|
true,
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
&mut self.fps,
|
Some(&mut self.fps),
|
||||||
) {
|
) {
|
||||||
Ok(damage) => {
|
Ok(damage) => {
|
||||||
state
|
state
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ impl Surface {
|
||||||
&self.output,
|
&self.output,
|
||||||
true,
|
true,
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
&mut self.fps,
|
Some(&mut self.fps),
|
||||||
) {
|
) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
state
|
state
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue