Skip to content

Commit

Permalink
Auto merge of #11918 - pcwalton:wr-no-paint-threads, r=glennw
Browse files Browse the repository at this point in the history
gfx: Don't create paint threads when WebRender is in use.

They're unused and just waste memory and process table entries.

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11918)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Jun 29, 2016
2 parents f6db351 + f071acd commit 5c41cda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/gfx/paint_thread.rs
Expand Up @@ -567,6 +567,12 @@ impl WorkerThreadProxy {
font_cache_thread: FontCacheThread,
time_profiler_chan: time::ProfilerChan)
-> Vec<WorkerThreadProxy> {
// Don't make any paint threads if we're using WebRender. They're just a waste of
// resources.
if opts::get().use_webrender {
return vec![]
}

let thread_count = opts::get().paint_threads;
(0..thread_count).map(|_| {
let (from_worker_sender, from_worker_receiver) = channel();
Expand Down

0 comments on commit 5c41cda

Please sign in to comment.