Use Self::Surface in Compositor implementors
This commit is contained in:
parent
3cf8f77d65
commit
c929e6f5dd
2 changed files with 7 additions and 7 deletions
|
|
@ -50,7 +50,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
|
||||||
window: W,
|
window: W,
|
||||||
width: u32,
|
width: u32,
|
||||||
height: u32,
|
height: u32,
|
||||||
) -> Surface {
|
) -> Self::Surface {
|
||||||
let window = softbuffer::Surface::new(
|
let window = softbuffer::Surface::new(
|
||||||
&self.context,
|
&self.context,
|
||||||
Box::new(window.clone()) as _,
|
Box::new(window.clone()) as _,
|
||||||
|
|
@ -73,7 +73,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
|
||||||
|
|
||||||
fn configure_surface(
|
fn configure_surface(
|
||||||
&mut self,
|
&mut self,
|
||||||
surface: &mut Surface,
|
surface: &mut Self::Surface,
|
||||||
width: u32,
|
width: u32,
|
||||||
height: u32,
|
height: u32,
|
||||||
) {
|
) {
|
||||||
|
|
@ -100,7 +100,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
|
||||||
fn present<T: AsRef<str>>(
|
fn present<T: AsRef<str>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
renderer: &mut Self::Renderer,
|
renderer: &mut Self::Renderer,
|
||||||
surface: &mut Surface,
|
surface: &mut Self::Surface,
|
||||||
viewport: &Viewport,
|
viewport: &Viewport,
|
||||||
background_color: Color,
|
background_color: Color,
|
||||||
overlay: &[T],
|
overlay: &[T],
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ impl<Theme> graphics::Compositor for Compositor<Theme> {
|
||||||
window: W,
|
window: W,
|
||||||
width: u32,
|
width: u32,
|
||||||
height: u32,
|
height: u32,
|
||||||
) -> wgpu::Surface<'static> {
|
) -> Self::Surface {
|
||||||
let mut surface = self
|
let mut surface = self
|
||||||
.instance
|
.instance
|
||||||
.create_surface(window)
|
.create_surface(window)
|
||||||
|
|
@ -241,7 +241,7 @@ impl<Theme> graphics::Compositor for Compositor<Theme> {
|
||||||
|
|
||||||
fn configure_surface(
|
fn configure_surface(
|
||||||
&mut self,
|
&mut self,
|
||||||
surface: &mut wgpu::Surface<'static>,
|
surface: &mut Self::Surface,
|
||||||
width: u32,
|
width: u32,
|
||||||
height: u32,
|
height: u32,
|
||||||
) {
|
) {
|
||||||
|
|
@ -272,7 +272,7 @@ impl<Theme> graphics::Compositor for Compositor<Theme> {
|
||||||
fn present<T: AsRef<str>>(
|
fn present<T: AsRef<str>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
renderer: &mut Self::Renderer,
|
renderer: &mut Self::Renderer,
|
||||||
surface: &mut wgpu::Surface<'static>,
|
surface: &mut Self::Surface,
|
||||||
viewport: &Viewport,
|
viewport: &Viewport,
|
||||||
background_color: Color,
|
background_color: Color,
|
||||||
overlay: &[T],
|
overlay: &[T],
|
||||||
|
|
@ -293,7 +293,7 @@ impl<Theme> graphics::Compositor for Compositor<Theme> {
|
||||||
fn screenshot<T: AsRef<str>>(
|
fn screenshot<T: AsRef<str>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
renderer: &mut Self::Renderer,
|
renderer: &mut Self::Renderer,
|
||||||
_surface: &mut wgpu::Surface<'static>,
|
_surface: &mut Self::Surface,
|
||||||
viewport: &Viewport,
|
viewport: &Viewport,
|
||||||
background_color: Color,
|
background_color: Color,
|
||||||
overlay: &[T],
|
overlay: &[T],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue