mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move Epoch to gfx_traits
Resolves #9222. Moved Epoch from components/msg/compositor_msg to components/gfx_traits/lib. Updated use statements to reflect the move.
This commit is contained in:
parent
85792d2819
commit
f32995543d
12 changed files with 26 additions and 28 deletions
|
@ -2,17 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/// A newtype struct for denoting the age of messages; prevents race conditions.
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone, PartialOrd, Ord, Deserialize, Serialize)]
|
||||
pub struct Epoch(pub u32);
|
||||
|
||||
impl Epoch {
|
||||
pub fn next(&mut self) {
|
||||
let Epoch(ref mut u) = *self;
|
||||
*u += 1;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
|
||||
pub struct FrameTreeId(pub u32);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue