mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use specific assertion for compositing compositor
This commit is contained in:
parent
1ca913168d
commit
befd7e4b44
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ impl ConvertPipelineIdFromWebRender for webrender_api::PipelineId {
|
||||||
|
|
||||||
/// Holds the state when running reftests that determines when it is
|
/// Holds the state when running reftests that determines when it is
|
||||||
/// safe to save the output image.
|
/// safe to save the output image.
|
||||||
#[derive(Clone, Copy, PartialEq)]
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||||
enum ReadyState {
|
enum ReadyState {
|
||||||
Unknown,
|
Unknown,
|
||||||
WaitingForConstellationReply,
|
WaitingForConstellationReply,
|
||||||
|
@ -495,7 +495,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
}
|
}
|
||||||
|
|
||||||
(Msg::IsReadyToSaveImageReply(is_ready), ShutdownState::NotShuttingDown) => {
|
(Msg::IsReadyToSaveImageReply(is_ready), ShutdownState::NotShuttingDown) => {
|
||||||
assert!(self.ready_to_save_state == ReadyState::WaitingForConstellationReply);
|
assert_eq!(self.ready_to_save_state, ReadyState::WaitingForConstellationReply);
|
||||||
if is_ready {
|
if is_ready {
|
||||||
self.ready_to_save_state = ReadyState::ReadyToSaveImage;
|
self.ready_to_save_state = ReadyState::ReadyToSaveImage;
|
||||||
if opts::get().is_running_problem_test {
|
if opts::get().is_running_problem_test {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue