diff options
-rw-r--r-- | src/components/main/compositing/mod.rs | 8 | ||||
-rwxr-xr-x | src/components/main/servo.rc | 4 | ||||
-rw-r--r-- | src/components/script/dom/window.rs | 5 |
3 files changed, 12 insertions, 5 deletions
diff --git a/src/components/main/compositing/mod.rs b/src/components/main/compositing/mod.rs index 40d31fc861e..666808b7e9d 100644 --- a/src/components/main/compositing/mod.rs +++ b/src/components/main/compositing/mod.rs @@ -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(); } diff --git a/src/components/main/servo.rc b/src/components/main/servo.rc index a7ecf2c4ff8..4bb8dfe7b3a 100755 --- a/src/components/main/servo.rc +++ b/src/components/main/servo.rc @@ -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(); diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index b6f028f2081..a9b07e0b320 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -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 } |