aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/compositor_thread.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-07-26 20:24:42 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-08-22 14:36:06 +0200
commit1b123400eb70fa4710f21caab8d716396beacfb0 (patch)
tree0877501cf09f0f210b6248bd53c82bdf35b6a665 /components/compositing/compositor_thread.rs
parent1059ef4fdeb5c76102c3da22293d836942740033 (diff)
downloadservo-1b123400eb70fa4710f21caab8d716396beacfb0.tar.gz
servo-1b123400eb70fa4710f21caab8d716396beacfb0.zip
Wait for actual paint before setting paint related metrics
Diffstat (limited to 'components/compositing/compositor_thread.rs')
-rw-r--r--components/compositing/compositor_thread.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/compositing/compositor_thread.rs b/components/compositing/compositor_thread.rs
index ddba55cbf55..08ecfef50d2 100644
--- a/components/compositing/compositor_thread.rs
+++ b/components/compositing/compositor_thread.rs
@@ -7,6 +7,7 @@
use SendableFrameTree;
use compositor::CompositingReason;
use euclid::{Point2D, Size2D};
+use gfx_traits::Epoch;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{Key, KeyModifiers, KeyState, PipelineId, TopLevelBrowsingContextId};
use net_traits::image::base::Image;
@@ -143,6 +144,10 @@ pub enum Msg {
Dispatch(Box<Fn() + Send>),
/// Enter or exit fullscreen
SetFullscreenState(TopLevelBrowsingContextId, bool),
+ /// Indicates to the compositor that it needs to record the time when the frame with
+ /// the given ID (epoch) is painted and report it to the layout thread of the given
+ /// pipeline ID.
+ PendingPaintMetric(PipelineId, Epoch),
}
impl Debug for Msg {
@@ -176,6 +181,7 @@ impl Debug for Msg {
Msg::NewScrollFrameReady(..) => write!(f, "NewScrollFrameReady"),
Msg::Dispatch(..) => write!(f, "Dispatch"),
Msg::SetFullscreenState(..) => write!(f, "SetFullscreenState"),
+ Msg::PendingPaintMetric(..) => write!(f, "PendingPaintMetric"),
}
}
}