mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Pass Viewport Description to compositor
Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
55b1a9be2f
commit
4c12008f58
4 changed files with 22 additions and 2 deletions
|
@ -43,6 +43,8 @@ use webrender_api::{
|
|||
ImageKey, NativeFontHandle, PipelineId as WebRenderPipelineId,
|
||||
};
|
||||
|
||||
use crate::viewport_description::ViewportDescription;
|
||||
|
||||
/// Sends messages to the compositor.
|
||||
#[derive(Clone)]
|
||||
pub struct CompositorProxy {
|
||||
|
@ -177,6 +179,8 @@ pub enum CompositorMsg {
|
|||
/// Measure the current memory usage associated with the compositor.
|
||||
/// The report must be sent on the provided channel once it's complete.
|
||||
CollectMemoryReport(ReportsChan),
|
||||
/// A top-level frame has parsed a viewport metatag and is sending the new constraints.
|
||||
Viewport(WebViewId, ViewportDescription),
|
||||
}
|
||||
|
||||
impl Debug for CompositorMsg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue