Skip to content

Commit

Permalink
Bug 1511409 - Update webrender to commit dbaa10971f08f964120ba339f5b0…
Browse files Browse the repository at this point in the history
…ab3e7ace77d6 (WR PR #3374). r=kats

servo/webrender#3374

Differential Revision: https://phabricator.services.mozilla.com/D13626
  • Loading branch information
WR Updater Bot committed Dec 2, 2018
1 parent 4a0b798 commit 3574e3b
Show file tree
Hide file tree
Showing 9 changed files with 261 additions and 297 deletions.
2 changes: 1 addition & 1 deletion gfx/webrender_bindings/revision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5b26863178f8533eeba2de28c6bdc019ba9ed3e8
dbaa10971f08f964120ba339f5b0ab3e7ace77d6
1 change: 1 addition & 0 deletions gfx/wr/Cargo.lock

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

4 changes: 2 additions & 2 deletions gfx/wr/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ environment:
TARGET: x86_64-pc-windows-msvc

install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-1.27.0-${env:TARGET}.msi"
- msiexec /passive /i "rust-1.27.0-%TARGET%.msi" ADDLOCAL=Rustc,Cargo,Std INSTALLDIR=C:\Rust
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-1.30.0-${env:TARGET}.msi"
- msiexec /passive /i "rust-1.30.0-%TARGET%.msi" ADDLOCAL=Rustc,Cargo,Std INSTALLDIR=C:\Rust
- rustc -V
- cargo -V

Expand Down
1 change: 1 addition & 0 deletions gfx/wr/webrender/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ optional = true

[dev-dependencies]
mozangle = "0.1"
rand = "0.4"

[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
freetype = { version = "0.4", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion gfx/wr/webrender/src/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ impl AlphaBatchList {
) -> &mut Vec<PrimitiveInstanceData> {
if z_id != self.current_z_id ||
self.current_batch_index == usize::MAX ||
!self.batches[self.current_batch_index].key.is_compatible_with(&key) {
!self.batches[self.current_batch_index].key.is_compatible_with(&key)
{
let mut selected_batch_index = None;

match key.blend_mode {
Expand Down
2 changes: 2 additions & 0 deletions gfx/wr/webrender/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ extern crate image as image_loader;
extern crate base64;
#[cfg(all(feature = "capture", feature = "png"))]
extern crate png;
#[cfg(test)]
extern crate rand;

pub extern crate webrender_api;

Expand Down
8 changes: 6 additions & 2 deletions gfx/wr/webrender/src/render_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ impl RenderTaskTree {
pass_index
};

let pass = &mut passes[pass_index];
pass.add_render_task(id, task.get_dynamic_size(), task.target_kind(), &task.location);
passes[pass_index].add_render_task(
id,
task.get_dynamic_size(),
task.target_kind(),
&task.location,
);
}

pub fn prepare_for_render(&mut self) {
Expand Down
Loading

0 comments on commit 3574e3b

Please sign in to comment.