Giter Site home page Giter Site logo

zakorgy / webrender Goto Github PK

View Code? Open in Web Editor NEW

This project forked from servo/webrender

0.0 2.0 0.0 62.5 MB

A GPU-based renderer for the web

Home Page: https://doc.servo.org/webrender/

License: Mozilla Public License 2.0

Rust 90.74% GLSL 6.68% HTML 0.98% Dockerfile 0.01% Shell 0.28% PowerShell 0.12% Batchfile 0.03% Vue 0.40% JavaScript 0.12% Python 0.64%

webrender's Introduction

U-Szeged version

This version of WebRender is using next-gen backends (vulkan/dx12/metal) provided by the gfx-hal API.

The current state is experimental. At the moment the vulkan, dx12, and metal backends are usable, but in performance they are behind the original (this year's goal is to change this).

By default this WebRender builds with gfx-hal, but we kept the original OpenGL backend and you can enable it with the gleam feature in WebRender and with the gl feature in Wrench.

To run Wrench reftests e.g. with vulkan backend, use the following comand:

cd wrench
cargo run --features=vulkan reftest

It was tested on Linux (Ubuntu 18.04), Windows 10 and macOS (Mojave).

WebRender

Version

GPU renderer for the Web content, used by Servo.

Note that the canonical home for this code is in gfx/wr folder of the mozilla-central repository at https://hg.mozilla.org/mozilla-central. The Github repository at https://github.com/servo/webrender should be considered a downstream mirror, although it contains additional metadata (such as Github wiki pages) that do not exist in mozilla-central. Pull requests against the Github repository are still being accepted, although once reviewed, they will be landed on mozilla-central first and then mirrored back. If you are familiar with the mozilla-central contribution workflow, filing bugs in Bugzilla and submitting patches there would be preferred.

Update as a Dependency

After updating shaders in WebRender, go to servo and:

  • Go to the servo directory and do ./mach update-cargo -p webrender
  • Create a pull request to servo

Use WebRender with Servo

To use a local copy of WebRender with servo, go to your servo build directory and:

  • Edit Cargo.toml
  • Add at the end of the file:
[patch."https://github.com/servo/webrender"]
"webrender" = { path = "<path>/webrender" }
"webrender_api" = { path = "<path>/webrender_api" }

where <path> is the path to your local copy of WebRender.

  • Build as normal

Documentation

The Wiki has a few pages describing the internals and conventions of WebRender.

Testing

Tests run using OSMesa to get consistent rendering across platforms.

Still there may be differences depending on font libraries on your system, for example.

See this gist for how to make the text tests useful in Fedora, for example.

webrender's People

Contributors

gw3583 avatar kvark avatar nical avatar mrobinson avatar staktrace avatar pcwalton avatar glennw avatar bholley avatar jrmuizel avatar lsalzman avatar emilio avatar gankra avatar simonsapin avatar jerryshih avatar eqrion avatar waywardmonkeys avatar aosmond avatar djg avatar nox avatar cbrewster avatar squarewave avatar eijebong avatar mephisto41 avatar mattwoodrow avatar brennie avatar tnikkel avatar jamienicol avatar mstange avatar vvuk avatar demo99 avatar

Watchers

James Cloos avatar Gyula Zakor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.