Skip to content

Commit

Permalink
Update WR (new groove/ridge border path, mix-blend-mode optimizations)
Browse files Browse the repository at this point in the history
A few other minor additions too.
  • Loading branch information
gw3583 committed Apr 26, 2017
1 parent dc594fa commit c879584
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 37 deletions.
54 changes: 27 additions & 27 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion components/layout/webrender_helpers.rs
Expand Up @@ -416,7 +416,6 @@ impl WebRenderDisplayItemConverter for DisplayItem {

builder.push_stacking_context(stacking_context.scroll_policy,
stacking_context.bounds.to_rectf(),
stacking_context.z_index,
transform,
webrender_traits::TransformStyle::Flat,
perspective,
Expand Down
7 changes: 4 additions & 3 deletions components/webvr/webvr_thread.rs
Expand Up @@ -12,6 +12,7 @@ use std::collections::{HashMap, HashSet};
use std::sync::mpsc;
use std::sync::mpsc::{Receiver, Sender};
use webrender_traits;
use webrender_traits::DeviceIntSize;
use webvr_traits::{WebVRMsg, WebVRResult};
use webvr_traits::webvr::*;

Expand Down Expand Up @@ -329,7 +330,7 @@ impl WebVRCompositorHandler {

impl webrender_traits::VRCompositorHandler for WebVRCompositorHandler {
#[allow(unsafe_code)]
fn handle(&mut self, cmd: webrender_traits::VRCompositorCommand, texture_id: Option<u32>) {
fn handle(&mut self, cmd: webrender_traits::VRCompositorCommand, texture: Option<(u32, DeviceIntSize)>) {
match cmd {
webrender_traits::VRCompositorCommand::Create(compositor_id) => {
self.create_compositor(compositor_id);
Expand All @@ -347,12 +348,12 @@ impl webrender_traits::VRCompositorHandler for WebVRCompositorHandler {
}
webrender_traits::VRCompositorCommand::SubmitFrame(compositor_id, left_bounds, right_bounds) => {
if let Some(compositor) = self.compositors.get(&compositor_id) {
if let Some(texture_id) = texture_id {
if let Some((texture_id, size)) = texture {
let layer = VRLayer {
texture_id: texture_id,
left_bounds: left_bounds,
right_bounds: right_bounds,
texture_size: None
texture_size: Some((size.width as u32, size.height as u32))
};
unsafe {
(*compositor.0).submit_frame(&layer);
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit c879584

Please sign in to comment.