gfx: remove GfxFramebuffer::take_render_ops
This commit is contained in:
parent
02cfdc4be1
commit
5d5843df9a
8 changed files with 26 additions and 50 deletions
|
|
@ -404,10 +404,6 @@ impl GfxImage for TestGfxImage {
|
|||
}
|
||||
|
||||
impl GfxFramebuffer for TestGfxFb {
|
||||
fn take_render_ops(&self) -> Vec<GfxApiOpt> {
|
||||
vec![]
|
||||
}
|
||||
|
||||
fn physical_size(&self) -> (i32, i32) {
|
||||
match &*self.img {
|
||||
TestGfxImage::Shm(v) => (v.width, v.height),
|
||||
|
|
@ -417,7 +413,7 @@ impl GfxFramebuffer for TestGfxFb {
|
|||
|
||||
fn render(
|
||||
&self,
|
||||
ops: Vec<GfxApiOpt>,
|
||||
ops: &[GfxApiOpt],
|
||||
clear: Option<&Color>,
|
||||
) -> Result<Option<SyncFile>, GfxError> {
|
||||
let fb_points = |width: i32, height: i32, rect: &FramebufferRect| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue