Skip to content

Commit

Permalink
Update WR (render notifier API changes).
Browse files Browse the repository at this point in the history
  • Loading branch information
gw3583 committed Oct 23, 2017
1 parent 99b5eac commit 1da9dc9
Show file tree
Hide file tree
Showing 21 changed files with 88 additions and 31 deletions.
59 changes: 29 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/compositing/compositor.rs
Expand Up @@ -325,6 +325,10 @@ impl RenderNotifier {
}

impl webrender_api::RenderNotifier for RenderNotifier {
fn clone(&self) -> Box<webrender_api::RenderNotifier> {
Box::new(RenderNotifier::new(self.compositor_proxy.clone()))
}

fn new_frame_ready(&self) {
self.compositor_proxy.recomposite(CompositingReason::NewWebRenderFrame);
}
Expand Down
2 changes: 1 addition & 1 deletion components/servo/lib.rs
Expand Up @@ -185,7 +185,7 @@ impl<Window> Servo<Window> where Window: WindowMethods + 'static {
let mut debug_flags = webrender::DebugFlags::empty();
debug_flags.set(webrender::DebugFlags::PROFILER_DBG, opts.webrender_stats);

let render_notifier = RenderNotifier::new(compositor_proxy.clone());
let render_notifier = Box::new(RenderNotifier::new(compositor_proxy.clone()));

webrender::Renderer::new(window.gl(), render_notifier, webrender::RendererOptions {
device_pixel_ratio: device_pixel_ratio,
Expand Down
@@ -0,0 +1,3 @@
[border-left-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-applies-to-003.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-color-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-color-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-color-applies-to-003.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-width-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-width-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-left-width-applies-to-003.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-applies-to-003.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-color-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-color-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-color-applies-to-003.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-width-applies-to-001.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-width-applies-to-002.htm]
type: reftest
expected: FAIL
@@ -0,0 +1,3 @@
[border-top-width-applies-to-003.htm]
type: reftest
expected: FAIL

0 comments on commit 1da9dc9

Please sign in to comment.