aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/windowing.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2019-03-07 15:15:07 +0100
committerPaul Rouget <me@paulrouget.com>2019-03-22 15:41:48 +0800
commit4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a (patch)
tree4bb99869aa20eae871819d506f355b4d56c8abbf /components/compositing/windowing.rs
parent92a1336264a9c5521926c45874a17341a565614c (diff)
downloadservo-4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a.tar.gz
servo-4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a.zip
WR update: new viewport semantic
Diffstat (limited to 'components/compositing/windowing.rs')
-rw-r--r--components/compositing/windowing.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/compositing/windowing.rs b/components/compositing/windowing.rs
index 6c4ba4b3cee..66fc50b7dc2 100644
--- a/components/compositing/windowing.rs
+++ b/components/compositing/windowing.rs
@@ -17,7 +17,9 @@ use std::fmt::{Debug, Error, Formatter};
#[cfg(feature = "gl")]
use std::rc::Rc;
use style_traits::DevicePixel;
-use webrender_api::{DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePoint, ScrollLocation};
+use webrender_api::{
+ DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePoint, FramebufferIntSize, ScrollLocation,
+};
use webvr::VRServiceManager;
use webvr_traits::WebVRMainThreadHeartbeat;
@@ -167,7 +169,7 @@ pub struct EmbedderCoordinates {
/// Size of the native window.
pub window: (DeviceIntSize, DeviceIntPoint),
/// Size of the GL buffer in the window.
- pub framebuffer: DeviceIntSize,
+ pub framebuffer: FramebufferIntSize,
/// Coordinates of the document within the framebuffer.
pub viewport: DeviceIntRect,
}