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
Remove util::ipc module (use ipc_channel instead; fixes #12312) #12558
Changes from all commits
File filter...
Jump to…
| @@ -17,6 +17,8 @@ use font_cache_thread::FontCacheThread; | ||
| use font_context::FontContext; | ||
| use gfx_traits::{ChromeToPaintMsg, Epoch, LayerId, LayerKind, LayerProperties}; | ||
| use gfx_traits::{PaintListener, PaintRequest, StackingContextId}; | ||
| use ipc_channel::ipc::IpcReceiver; | ||
| use ipc_channel::router::ROUTER; | ||
| use layers::layers::{BufferRequest, LayerBuffer, LayerBufferSet}; | ||
| use layers::platform::surface::{NativeDisplay, NativeSurface}; | ||
| use msg::constellation_msg::PipelineId; | ||
| @@ -373,7 +375,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static { | ||
| pub fn create(id: PipelineId, | ||
| url: Url, | ||
| chrome_to_paint_chan: Sender<ChromeToPaintMsg>, | ||
| layout_to_paint_port: Receiver<LayoutToPaintMsg>, | ||
| layout_to_paint_port: IpcReceiver<LayoutToPaintMsg>, | ||
antrik
Contributor
|
||
| chrome_to_paint_port: Receiver<ChromeToPaintMsg>, | ||
| mut compositor: C, | ||
| font_cache_thread: FontCacheThread, | ||
| @@ -392,7 +394,8 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static { | ||
| let mut paint_thread = PaintThread { | ||
| id: id, | ||
| _url: url, | ||
| layout_to_paint_port: layout_to_paint_port, | ||
| layout_to_paint_port: | ||
| ROUTER.route_ipc_receiver_to_new_mpsc_receiver(layout_to_paint_port), | ||
antrik
Contributor
|
||
| chrome_to_paint_port: chrome_to_paint_port, | ||
| compositor: compositor, | ||
| time_profiler_chan: time_profiler_chan, | ||
Some generated files are not rendered by default. Learn more.
Ah, is this replacing a channel by an ipc channel? Is this the source of slowdown?