mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use WindowMethods to get native graphics metadata instead of
relying on azure. This is a prerequisite for the switch to glutin. Tested on Linux, mac. Tested that android + cef build.
This commit is contained in:
parent
44eec48c57
commit
2d6626e7ef
12 changed files with 49 additions and 9 deletions
|
@ -8,6 +8,7 @@ use geom::point::TypedPoint2D;
|
|||
use geom::scale_factor::ScaleFactor;
|
||||
use geom::size::TypedSize2D;
|
||||
use layers::geometry::DevicePixel;
|
||||
use layers::platform::surface::NativeGraphicsMetadata;
|
||||
use servo_msg::compositor_msg::{ReadyState, RenderState};
|
||||
use servo_util::geometry::ScreenPx;
|
||||
|
||||
|
@ -71,5 +72,8 @@ pub trait WindowMethods {
|
|||
|
||||
/// Returns the hidpi factor of the monitor.
|
||||
fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32>;
|
||||
|
||||
/// Gets the OS native graphics information for this window.
|
||||
fn native_metadata(&self) -> NativeGraphicsMetadata;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue