mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
Update submodules and ~str/String, to_owned/to_string, & cast/mem to get android building.
This commit is contained in:
parent
4b5fd956bd
commit
841a6bf647
12 changed files with 25 additions and 25 deletions
|
@ -8,12 +8,12 @@ use platform::surface::NativeSurfaceAzureMethods;
|
|||
|
||||
use azure::AzSkiaGrGLSharedSurfaceRef;
|
||||
use layers::platform::surface::NativeSurface;
|
||||
use std::cast;
|
||||
use std::mem;
|
||||
|
||||
impl NativeSurfaceAzureMethods for NativeSurface {
|
||||
fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> NativeSurface {
|
||||
unsafe {
|
||||
NativeSurface::from_image_khr(cast::transmute(surface))
|
||||
NativeSurface::from_image_khr(mem::transmute(surface))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue