auto merge of #4316 : michaelwu/servo/fix-gonk, r=glennw

This makes the gonk port build/work again after the recent CEF port update.
This commit is contained in:
bors-servo 2014-12-10 13:15:59 -07:00
commit 5b53d5a163
2 changed files with 17 additions and 0 deletions

View file

@ -28,6 +28,7 @@ use servo_util::opts;
use servo_util::rtinstrument; use servo_util::rtinstrument;
use servo::Browser; use servo::Browser;
use compositing::windowing::IdleWindowEvent; use compositing::windowing::IdleWindowEvent;
use compositing::windowing::InitializeCompositingWindowEvent;
use std::os; use std::os;
@ -58,6 +59,8 @@ fn start(argc: int, argv: *const *const u8) -> int {
Some(ref window) => input::run_input_loop(&window.event_send) Some(ref window) => input::run_input_loop(&window.event_send)
} }
browser.browser.handle_event(InitializeCompositingWindowEvent);
loop { loop {
let should_continue = match window { let should_continue = match window {
None => browser.browser.handle_event(IdleWindowEvent), None => browser.browser.handle_event(IdleWindowEvent),

View file

@ -13,6 +13,7 @@ use layers::platform::surface::NativeGraphicsMetadata;
use libc::c_int; use libc::c_int;
use msg::compositor_msg::{Blank, IdlePaintState}; use msg::compositor_msg::{Blank, IdlePaintState};
use msg::compositor_msg::{ReadyState, PaintState}; use msg::compositor_msg::{ReadyState, PaintState};
use msg::constellation_msg::LoadData;
use std::cell::Cell; use std::cell::Cell;
use std::comm::Receiver; use std::comm::Receiver;
use std::rc::Rc; use std::rc::Rc;
@ -790,6 +791,15 @@ impl WindowMethods for Window {
self.paint_state.set(paint_state); self.paint_state.set(paint_state);
} }
fn set_page_title(&self, _: Option<String>) {
}
fn set_page_load_data(&self, _: LoadData) {
}
fn load_end(&self) {
}
fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> { fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
ScaleFactor(1.0) ScaleFactor(1.0)
} }
@ -809,6 +819,10 @@ impl WindowMethods for Window {
} as Box<CompositorProxy+Send>, } as Box<CompositorProxy+Send>,
box receiver as Box<CompositorReceiver>) box receiver as Box<CompositorReceiver>)
} }
fn prepare_for_composite(&self) -> bool {
true
}
} }
struct GonkCompositorProxy { struct GonkCompositorProxy {