diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-10-25 14:52:53 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-10-25 16:58:30 -0700 |
commit | 3d0bfa50407d820435cbf8ae127d567816f0a8eb (patch) | |
tree | be96d1f487dc93d09139189bd332af9261158e27 /src/components/msg/platform/surface.rs | |
parent | d5bd4bfdb71415fc399b986359ba6ad0ff3ac3de (diff) | |
download | servo-3d0bfa50407d820435cbf8ae127d567816f0a8eb.tar.gz servo-3d0bfa50407d820435cbf8ae127d567816f0a8eb.zip |
Implement CPU rendering. Replace texture sharing with native OS surface sharing.
Diffstat (limited to 'src/components/msg/platform/surface.rs')
-rw-r--r-- | src/components/msg/platform/surface.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/msg/platform/surface.rs b/src/components/msg/platform/surface.rs new file mode 100644 index 00000000000..eee8dfa5598 --- /dev/null +++ b/src/components/msg/platform/surface.rs @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +//! Declarations of types for cross-process surfaces. + +use azure::AzSkiaGrGLSharedSurfaceRef; + +pub trait NativeSurfaceAzureMethods { + fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> Self; +} + |