mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
ports/cef: Implement accelerated compositing for the CEF port.
This commit is contained in:
parent
315e166cf7
commit
8b2aadc30b
35 changed files with 1746 additions and 642 deletions
|
@ -19,7 +19,7 @@ pub enum PaintState {
|
|||
PaintingPaintState,
|
||||
}
|
||||
|
||||
#[deriving(Eq, Ord, PartialEq, PartialOrd, Clone)]
|
||||
#[deriving(Eq, Ord, PartialEq, PartialOrd, Clone, Show)]
|
||||
pub enum ReadyState {
|
||||
/// Informs the compositor that nothing has been done yet. Used for setting status
|
||||
Blank,
|
||||
|
@ -111,6 +111,8 @@ pub trait ScriptListener {
|
|||
pipeline_id: PipelineId,
|
||||
layer_id: LayerId,
|
||||
point: Point2D<f32>);
|
||||
/// Informs the compositor that the title of the page with the given pipeline ID has changed.
|
||||
fn set_title(&mut self, pipeline_id: PipelineId, new_title: Option<String>);
|
||||
fn close(&mut self);
|
||||
fn dup(&mut self) -> Box<ScriptListener+'static>;
|
||||
}
|
||||
|
|
|
@ -205,6 +205,9 @@ pub enum Msg {
|
|||
PainterReadyMsg(PipelineId),
|
||||
ResizedWindowMsg(WindowSizeData),
|
||||
KeyEvent(Key, KeyState, KeyModifiers),
|
||||
/// Requests that the constellation inform the compositor of the title of the pipeline
|
||||
/// immediately.
|
||||
GetPipelineTitleMsg(PipelineId),
|
||||
}
|
||||
|
||||
/// Similar to net::resource_task::LoadData
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue