ports/cef: Implement accelerated compositing for the CEF port.

This commit is contained in:
Patrick Walton 2014-11-24 17:23:30 -08:00
parent 315e166cf7
commit 8b2aadc30b
35 changed files with 1746 additions and 642 deletions

View file

@ -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),