зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #11289 - Simplify PaintThread::create() (from Ms2ger:paintthread); r=nox
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. Source-Repo: https://github.com/servo/servo Source-Revision: a4e215974ca1b471db2b10c6a5eae64dd1523e00
This commit is contained in:
Родитель
653c19e2b3
Коммит
3d3386f307
|
@ -392,7 +392,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
|
|||
chrome_to_paint_chan: Sender<ChromeToPaintMsg>,
|
||||
layout_to_paint_port: Receiver<LayoutToPaintMsg>,
|
||||
chrome_to_paint_port: Receiver<ChromeToPaintMsg>,
|
||||
compositor: C,
|
||||
mut compositor: C,
|
||||
panic_chan: IpcSender<PanicMsg>,
|
||||
font_cache_thread: FontCacheThread,
|
||||
time_profiler_chan: time::ProfilerChan,
|
||||
|
@ -404,10 +404,8 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
|
|||
{
|
||||
// Ensures that the paint thread and graphics context are destroyed before the
|
||||
// shutdown message.
|
||||
let mut compositor = compositor;
|
||||
let native_display = compositor.native_display().map(
|
||||
|display| display);
|
||||
let worker_threads = WorkerThreadProxy::spawn(native_display.clone(),
|
||||
let native_display = compositor.native_display();
|
||||
let worker_threads = WorkerThreadProxy::spawn(native_display,
|
||||
font_cache_thread,
|
||||
time_profiler_chan.clone());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче