mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
compositor: Hide IpcSender as implementation detail (#38963)
The `CrossProcessCompositorApi` already provides methods for most messages. Remove the `sender()` method, and hide the IpcSender as an implementation detail. This is a preparation for abstracting over the internal IpcSender. Testing: No functional changes --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
5909eb7684
commit
33e934421e
4 changed files with 29 additions and 22 deletions
|
@ -36,7 +36,7 @@ use base::cross_process_instant::CrossProcessInstant;
|
|||
use base::id::{BrowsingContextId, HistoryStateId, PipelineId, PipelineNamespace, WebViewId};
|
||||
use canvas_traits::webgl::WebGLPipeline;
|
||||
use chrono::{DateTime, Local};
|
||||
use compositing_traits::{CompositorMsg, CrossProcessCompositorApi, PipelineExitSource};
|
||||
use compositing_traits::{CrossProcessCompositorApi, PipelineExitSource};
|
||||
use constellation_traits::{
|
||||
JsEvalResult, LoadData, LoadOrigin, NavigationHistoryBehavior, ScriptToConstellationChan,
|
||||
ScriptToConstellationMessage, StructuredSerializedData, WindowSizeType,
|
||||
|
@ -2956,13 +2956,7 @@ impl ScriptThread {
|
|||
.ok();
|
||||
|
||||
self.compositor_api
|
||||
.sender()
|
||||
.send(CompositorMsg::PipelineExited(
|
||||
webview_id,
|
||||
id,
|
||||
PipelineExitSource::Script,
|
||||
))
|
||||
.ok();
|
||||
.pipeline_exited(webview_id, id, PipelineExitSource::Script);
|
||||
|
||||
debug!("{id}: Finished pipeline exit");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue