mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Correct usage of number of painting threads.
Previously this used the number of layout threads to allocate the threadpool. This also makes the member name consistent with the rest of the structure.
This commit is contained in:
parent
923676d443
commit
7acc0619e6
3 changed files with 21 additions and 19 deletions
|
@ -424,7 +424,7 @@ impl WorkerThreadProxy {
|
|||
let thread_count = if opts::get().gpu_painting {
|
||||
1
|
||||
} else {
|
||||
opts::get().layout_threads
|
||||
opts::get().paint_threads
|
||||
};
|
||||
(0..thread_count).map(|_| {
|
||||
let (from_worker_sender, from_worker_receiver) = channel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue