mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Move FrameTreeId to compositing.
This commit is contained in:
parent
0b5dc7ed34
commit
7ef81c3d7d
2 changed files with 10 additions and 10 deletions
|
@ -12,7 +12,7 @@ use euclid::point::TypedPoint2D;
|
|||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use gfx_traits::{DevicePixel, LayerPixel, ScrollRootId};
|
||||
use gfx_traits::{Epoch, FrameTreeId, FragmentType};
|
||||
use gfx_traits::{Epoch, FragmentType};
|
||||
use gleam::gl;
|
||||
use gleam::gl::types::{GLint, GLsizei};
|
||||
use image::{DynamicImage, ImageFormat, RgbImage};
|
||||
|
@ -108,6 +108,15 @@ enum ReadyState {
|
|||
ReadyToSaveImage,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
|
||||
struct FrameTreeId(u32);
|
||||
|
||||
impl FrameTreeId {
|
||||
pub fn next(&mut self) {
|
||||
self.0 += 1;
|
||||
}
|
||||
}
|
||||
|
||||
/// NB: Never block on the constellation, because sometimes the constellation blocks on us.
|
||||
pub struct IOCompositor<Window: WindowMethods> {
|
||||
/// The application window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue