Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiling: derive Default for CompositeOps. #1499

Merged
merged 1 commit into from Jul 19, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

tiling: derive Default for CompositeOps.

  • Loading branch information
emilio committed Jul 19, 2017
commit 9c406e644963c6950d6e08a021e0e7649e39c9ab
@@ -1666,7 +1666,7 @@ impl PackedLayer {
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct CompositeOps {
// Requires only a single texture as input (e.g. most filters)
pub filters: Vec<LowLevelFilterOp>,
@@ -1697,15 +1697,6 @@ impl CompositeOps {
}
}

impl Default for CompositeOps {
fn default() -> CompositeOps {
CompositeOps {
filters: Vec::new(),
mix_blend_mode: None,
}
}
}

/// A rendering-oriented representation of frame::Frame built by the render backend
/// and presented to the renderer.
pub struct Frame {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.