From 7915a7099f066fa6f1cdfb3c6e5fc6e84684c58a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 4 Jun 2019 17:10:02 -0700 Subject: [PATCH] Fix WebRender churn in `compositing` --- components/compositing/compositor.rs | 8 ++++---- components/compositing/windowing.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 01b4bc5e801d..dcff6ef66fef 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -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)] @@ -1167,7 +1166,8 @@ impl IOCompositor { for (id, _) in &self.pipeline_details { let webrender_pipeline_id = id.to_webrender(); if let Some(webrender_api::Epoch(epoch)) = - self.webrender.current_epoch(webrender_pipeline_id) + self.webrender.current_epoch(self.webrender_document, + webrender_pipeline_id) { let epoch = Epoch(epoch); pipeline_epochs.insert(*id, epoch); @@ -1303,7 +1303,7 @@ impl IOCompositor { 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(id.to_webrender()) + 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); diff --git a/components/compositing/windowing.rs b/components/compositing/windowing.rs index d64f422d14bd..aa0bdc213849 100644 --- a/components/compositing/windowing.rs +++ b/components/compositing/windowing.rs @@ -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;