mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
compositing: Remove windowing.rs
and making compositing
private (#36582)
This file used to contain the `EmbedderDelegate` and `WindowMethods` traits, but these are gone now, so we can move the one remaining enum to be in `compositor.rs` where it is used. This change also stops exposing the `compositing` crate as public Servo API. Testing: This does not change behavior so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
95ee5708fa
commit
d345844ed7
6 changed files with 17 additions and 23 deletions
|
@ -56,7 +56,6 @@ use webrender_api::{
|
|||
use crate::InitialCompositorState;
|
||||
use crate::webview::{UnknownWebView, WebView};
|
||||
use crate::webview_manager::WebViewManager;
|
||||
use crate::windowing::WebRenderDebugOption;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
enum UnableToComposite {
|
||||
|
@ -78,6 +77,14 @@ enum ReadyState {
|
|||
WaitingForConstellationReply,
|
||||
ReadyToSaveImage,
|
||||
}
|
||||
|
||||
/// An option to control what kind of WebRender debugging is enabled while Servo is running.
|
||||
#[derive(Clone)]
|
||||
pub enum WebRenderDebugOption {
|
||||
Profiler,
|
||||
TextureCacheDebug,
|
||||
RenderTargetDebug,
|
||||
}
|
||||
/// Data that is shared by all WebView renderers.
|
||||
pub struct ServoRenderer {
|
||||
/// This is a temporary map between [`PipelineId`]s and their associated [`WebViewId`]. Once
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue