Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename webrender_traits into webrender_api, reexport in webrender. #1381

Merged
merged 1 commit into from Jun 30, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Rename webrender_traits into webrender_api, reexport in webrender.

  • Loading branch information
nical committed Jun 30, 2017
commit 5ebe3de06b8b1b05409a9e36604fb7f8e458b9d4
@@ -24,7 +24,7 @@ before_install:
- pip install mako servo-tidy
script:
- servo-tidy
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender_traits && cargo test --verbose --features "ipc"); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender_api && cargo test --verbose --features "ipc"); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo build --verbose --no-default-features); fi
- if [ $BUILD_KIND = DEBUG ]; then (cargo test --all --verbose); fi
- if [ $BUILD_KIND = RELEASE ]; then (cd wrench && python headless.py --subpixel-aa reftest); fi

Some generated files are not rendered by default. Learn more.

@@ -1,7 +1,7 @@
[workspace]
members = [
"webrender",
"webrender_traits",
"webrender_api",
"wrench",
]

@@ -17,10 +17,10 @@ To use a custom WebRender with servo, go to your servo build directory and:
```
[replace]
"https://github.com/servo/webrender#0.36.0" = { path = 'Path/To/webrender/webrender/' }
"https://github.com/servo/webrender#webrender_traits:0.36.0" = { path = 'Path/To/webrender/webrender_traits' }
"https://github.com/servo/webrender#webrender_api:0.36.0" = { path = 'Path/To/webrender/webrender_api' }
```

The exact replace references can be obtained with `cargo pkgid webrender`/`cargo pkgid webrender_traits` command.
The exact replace references can be obtained with `cargo pkgid webrender`/`cargo pkgid webrender_api` command.

* Build as normal

@@ -12,7 +12,7 @@ install:
build: false

test_script:
- cd webrender_traits
- cd webrender_api
- cargo test --verbose

This comment has been minimized.

@kvark

kvark Jun 15, 2017

Member

we should probably be using cargo test --all

- cd ../webrender
- cargo test --verbose
@@ -1,6 +1,6 @@
[package]
name = "webrender"
version = "0.44.0"
version = "0.45.0"
authors = ["Glenn Watson <gw@intuitionlibrary.com>"]
license = "MPL-2.0"
repository = "https://github.com/servo/webrender"
@@ -10,7 +10,7 @@ build = "build.rs"
default = ["freetype-lib", "webgl"]
freetype-lib = ["freetype/servo-freetype-sys"]
profiler = ["thread_profiler/thread_profiler"]
webgl = ["offscreen_gl_context", "webrender_traits/webgl"]
webgl = ["offscreen_gl_context", "webrender_api/webgl"]

[dependencies]
app_units = "0.5"
@@ -26,7 +26,7 @@ num-traits = "0.1.32"
offscreen_gl_context = {version = "0.11", features = ["serde", "osmesa"], optional = true}
time = "0.1"
rayon = "0.8"
webrender_traits = {path = "../webrender_traits"}
webrender_api = {path = "../webrender_api"}
bitflags = "0.7"
gamma-lut = "0.2"
thread_profiler = "0.1.1"
@@ -3,12 +3,11 @@
extern crate rand;
extern crate test;
extern crate webrender;
extern crate webrender_traits;

use rand::Rng;
use test::Bencher;
use webrender::TexturePage;
use webrender_traits::{DeviceUintSize as Size};
use webrender::api::{DeviceUintSize as Size};

#[bench]
fn bench_coalesce(b: &mut Bencher) {
@@ -5,7 +5,6 @@
extern crate gleam;
extern crate glutin;
extern crate webrender;
extern crate webrender_traits;

#[macro_use]
extern crate lazy_static;
@@ -15,7 +14,7 @@ mod boilerplate;

use boilerplate::HandyDandyRectBuilder;
use std::sync::Mutex;
use webrender_traits::*;
use webrender::api::*;

// This example creates a 100x100 white rect and allows the user to move it
// around by using the arrow keys. It does this by using the animation API.
@@ -28,12 +27,12 @@ fn body(_api: &RenderApi,
// Note the magic "42" we use as the animation key. That is used to update
// the transform in the keyboard event handler code.
let bounds = (0,0).to(100, 100);
builder.push_stacking_context(webrender_traits::ScrollPolicy::Scrollable,
builder.push_stacking_context(ScrollPolicy::Scrollable,
bounds,
Some(PropertyBinding::Binding(PropertyBindingKey::new(42))),
TransformStyle::Flat,
None,
webrender_traits::MixBlendMode::Normal,
MixBlendMode::Normal,
Vec::new());

// Fill it with a white rect
@@ -7,7 +7,6 @@ extern crate euclid;
extern crate gleam;
extern crate glutin;
extern crate webrender;
extern crate webrender_traits;

#[macro_use]
extern crate lazy_static;
@@ -23,7 +22,7 @@ use std::collections::HashMap;
use std::fs::File;
use std::io::Read;
use std::sync::Mutex;
use webrender_traits::*;
use webrender::api::*;

#[derive(Debug)]
enum Gesture {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.