Stub out some things that need changes for newrt

brson and I will work on these next.
This commit is contained in:
Keegan McAllister 2013-08-09 15:39:55 -07:00
parent 307f1074d3
commit e917ff353b
3 changed files with 12 additions and 5 deletions

View file

@ -26,8 +26,6 @@ use std::comm::{Chan, SharedChan, Port};
use std::num::Orderable;
use std::task;
use std::vec;
use extra::uv_global_loop;
use extra::timer;
use geom::matrix::identity;
use geom::point::Point2D;
use geom::size::Size2D;
@ -494,7 +492,10 @@ impl CompositorTask {
composite();
}
/*
timer::sleep(&uv_global_loop::get(), 10);
*/
fail!("stubbed out!");
// If a pinch-zoom happened recently, ask for tiles at the new resolution
if zoom_action && precise_time_s() - zoom_time > 0.3 {
@ -512,7 +513,10 @@ impl CompositorTask {
fn on_osmain(f: ~fn()) {
// FIXME: rust#6399
let mut main_task = task::task();
/*
main_task.sched_mode(task::PlatformThread);
*/
fail!("stubbed out!");
do main_task.spawn {
f();
}

View file

@ -43,7 +43,6 @@ use gfx::opts;
use servo_net::image_cache_task::ImageCacheTask;
use servo_net::resource_task::ResourceTask;
use servo_util::time::{Profiler, ProfilerChan, PrintMsg};
use extra::uv_global_loop;
pub use gfx::opts::Opts;
pub use gfx::text;
@ -105,6 +104,7 @@ fn run(opts: &Opts) {
let (profiler_port, profiler_chan) = comm::stream();
let profiler_chan = ProfilerChan::new(profiler_chan);
Profiler::create(profiler_port);
/*
do opts.profiler_period.map |period| {
let profiler_chan = profiler_chan.clone();
let period = *period;
@ -116,6 +116,8 @@ fn run(opts: &Opts) {
}
}
};
*/
fail!("stubbed out!");
// Create the compositor.
let (compositor_port, compositor_chan) = comm::stream();

View file

@ -22,8 +22,6 @@ use std::comm::Chan;
use std::io;
use std::ptr;
use js::jsapi::JSVal;
use extra::timer;
use extra::uv_global_loop;
pub enum TimerControlMsg {
TimerMessage_Fire(~TimerData),
@ -141,6 +139,7 @@ impl BindingObject for Window {
impl Window {
pub fn SetTimeout(&self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 {
/*
let timeout = int::max(0, timeout) as uint;
// Post a delayed message to the per-window timer task; it will dispatch it
@ -153,6 +152,8 @@ impl Window {
timeout,
&self.timer_chan,
TimerMessage_Fire(data));
*/
fail!("stubbed out!");
return 0; //TODO return handle into list of active timers
}