mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Fix simpleservo.
This commit is contained in:
parent
4de93a145a
commit
921d91f731
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,8 @@ use servo::script_traits::{TouchEventType, TouchId};
|
||||||
use servo::servo_config::opts;
|
use servo::servo_config::opts;
|
||||||
use servo::servo_config::{pref, set_pref};
|
use servo::servo_config::{pref, set_pref};
|
||||||
use servo::servo_url::ServoUrl;
|
use servo::servo_url::ServoUrl;
|
||||||
use servo::webrender_api::{DevicePixel, FramebufferPixel, ScrollLocation};
|
use servo::webrender_api::units::DevicePixel;
|
||||||
|
use servo::webrender_api::ScrollLocation;
|
||||||
use servo::webvr::{VRExternalShmemPtr, VRMainThreadHeartbeat, VRService, VRServiceManager};
|
use servo::webvr::{VRExternalShmemPtr, VRMainThreadHeartbeat, VRService, VRServiceManager};
|
||||||
use servo::{self, gl, BrowserId, Servo};
|
use servo::{self, gl, BrowserId, Servo};
|
||||||
use servo_media::player::context as MediaPlayerContext;
|
use servo_media::player::context as MediaPlayerContext;
|
||||||
|
@ -61,7 +62,7 @@ pub enum VRInitOptions {
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Coordinates {
|
pub struct Coordinates {
|
||||||
pub viewport: TypedRect<i32, DevicePixel>,
|
pub viewport: TypedRect<i32, DevicePixel>,
|
||||||
pub framebuffer: TypedSize2D<i32, FramebufferPixel>,
|
pub framebuffer: TypedSize2D<i32, DevicePixel>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Coordinates {
|
impl Coordinates {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue