mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -30,7 +30,9 @@ use servo_util::rtinstrument;
|
|||
#[cfg(not(any(test,target_os="android")))]
|
||||
use servo::Browser;
|
||||
#[cfg(not(any(test,target_os="android")))]
|
||||
use compositing::windowing::{IdleWindowEvent, ResizeWindowEvent, WindowEvent};
|
||||
use compositing::windowing::{IdleWindowEvent, InitializeCompositingWindowEvent, ResizeWindowEvent};
|
||||
#[cfg(not(any(test,target_os="android")))]
|
||||
use compositing::windowing::{WindowEvent};
|
||||
|
||||
#[cfg(not(any(test,target_os="android")))]
|
||||
use std::os;
|
||||
|
@ -65,6 +67,8 @@ fn start(argc: int, argv: *const *const u8) -> int {
|
|||
}
|
||||
}
|
||||
|
||||
browser.browser.handle_event(InitializeCompositingWindowEvent);
|
||||
|
||||
loop {
|
||||
let should_continue = match window {
|
||||
None => browser.browser.handle_event(IdleWindowEvent),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue