Bug 1401244 - Update call to set_window_parameters for API change in WR cset f88825b. r=jrmuizel
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 22 Sep 2017 08:54:32 -0400
changeset 669096 bdfb0bd22f0863a559703f94f42c77741e84d2fa
parent 669095 d209ec686f4fd3e43c7c4a7064d35503dc5de364
child 669097 381d7636b03dbb7d2f40924702318edce6aed59e
push id81210
push userkgupta@mozilla.com
push dateFri, 22 Sep 2017 14:09:59 +0000
reviewersjrmuizel
bugs1401244
milestone58.0a1
Bug 1401244 - Update call to set_window_parameters for API change in WR cset f88825b. r=jrmuizel MozReview-Commit-ID: AqpuZiClTjk
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -815,17 +815,18 @@ pub extern "C" fn wr_api_set_root_pipeli
 
 #[no_mangle]
 pub extern "C" fn wr_api_set_window_parameters(dh: &mut DocumentHandle,
                                                width: i32,
                                                height: i32) {
     let size = DeviceUintSize::new(width as u32, height as u32);
     dh.api.set_window_parameters(dh.document_id,
                                  size,
-                                 DeviceUintRect::new(DeviceUintPoint::new(0, 0), size));
+                                 DeviceUintRect::new(DeviceUintPoint::new(0, 0), size),
+                                 1.0);
 }
 
 #[no_mangle]
 pub unsafe extern "C" fn wr_api_set_display_list(
     dh: &mut DocumentHandle,
     color: ColorF,
     epoch: WrEpoch,
     viewport_width: f32,