Skip to content


Fix WebRender churn in compositing
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton authored and jdm committed Jul 9, 2019
1 parent ae42048 commit 7915a70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/compositing/
Expand Up @@ -43,8 +43,7 @@ use style_traits::viewport::ViewportConstraints;
use style_traits::{CSSPixel, DevicePixel, PinchZoomFactor};
use time::{now, precise_time_ns, precise_time_s};
use webrender_api::{self, HitTestFlags, HitTestResult, ScrollLocation};
use webrender_api::units::{DeviceIntPoint, DeviceIntSize, DevicePoint};
use webrender_api::units::{FramebufferIntSize, LayoutVector2D};
use webrender_api::units::{DeviceIntPoint, DeviceIntSize, DevicePoint, LayoutVector2D};
use webvr_traits::WebVRMainThreadHeartbeat;

#[derive(Debug, PartialEq)]
Expand Down Expand Up @@ -1167,7 +1166,8 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
for (id, _) in &self.pipeline_details {
let webrender_pipeline_id = id.to_webrender();
if let Some(webrender_api::Epoch(epoch)) =
let epoch = Epoch(epoch);
pipeline_epochs.insert(*id, epoch);
Expand Down Expand Up @@ -1303,7 +1303,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
for (id, pending_epoch) in &self.pending_paint_metrics {
// we get the last painted frame id from webrender
if let Some(webrender_api::Epoch(epoch)) =
self.webrender.current_epoch(self.webrender_document, id.to_webrender())
// and check if it is the one the layout thread is expecting,
let epoch = Epoch(epoch);
Expand Down
4 changes: 2 additions & 2 deletions components/compositing/
Expand Up @@ -20,8 +20,8 @@ use std::rc::Rc;
use std::time::Duration;
use style_traits::DevicePixel;
use webrender_api::ScrollLocation;
use webrender_api::units::{DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePoint};
use webrender_api::units::{FramebufferIntRect, FramebufferIntSize};
use webrender_api::units::{DeviceIntPoint, DeviceIntRect, DeviceIntSize};
use webrender_api::units::{DevicePoint, FramebufferIntSize};
use webvr::VRServiceManager;
use webvr_traits::WebVRMainThreadHeartbeat;

Expand Down

0 comments on commit 7915a70

Please sign in to comment.