mirror of
https://github.com/servo/servo.git
synced 2025-06-22 16:18:59 +01:00
Stub out some things that need changes for newrt
brson and I will work on these next.
This commit is contained in:
parent
307f1074d3
commit
e917ff353b
3 changed files with 12 additions and 5 deletions
|
@ -26,8 +26,6 @@ use std::comm::{Chan, SharedChan, Port};
|
||||||
use std::num::Orderable;
|
use std::num::Orderable;
|
||||||
use std::task;
|
use std::task;
|
||||||
use std::vec;
|
use std::vec;
|
||||||
use extra::uv_global_loop;
|
|
||||||
use extra::timer;
|
|
||||||
use geom::matrix::identity;
|
use geom::matrix::identity;
|
||||||
use geom::point::Point2D;
|
use geom::point::Point2D;
|
||||||
use geom::size::Size2D;
|
use geom::size::Size2D;
|
||||||
|
@ -494,7 +492,10 @@ impl CompositorTask {
|
||||||
composite();
|
composite();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
timer::sleep(&uv_global_loop::get(), 10);
|
timer::sleep(&uv_global_loop::get(), 10);
|
||||||
|
*/
|
||||||
|
fail!("stubbed out!");
|
||||||
|
|
||||||
// If a pinch-zoom happened recently, ask for tiles at the new resolution
|
// If a pinch-zoom happened recently, ask for tiles at the new resolution
|
||||||
if zoom_action && precise_time_s() - zoom_time > 0.3 {
|
if zoom_action && precise_time_s() - zoom_time > 0.3 {
|
||||||
|
@ -512,7 +513,10 @@ impl CompositorTask {
|
||||||
fn on_osmain(f: ~fn()) {
|
fn on_osmain(f: ~fn()) {
|
||||||
// FIXME: rust#6399
|
// FIXME: rust#6399
|
||||||
let mut main_task = task::task();
|
let mut main_task = task::task();
|
||||||
|
/*
|
||||||
main_task.sched_mode(task::PlatformThread);
|
main_task.sched_mode(task::PlatformThread);
|
||||||
|
*/
|
||||||
|
fail!("stubbed out!");
|
||||||
do main_task.spawn {
|
do main_task.spawn {
|
||||||
f();
|
f();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ use gfx::opts;
|
||||||
use servo_net::image_cache_task::ImageCacheTask;
|
use servo_net::image_cache_task::ImageCacheTask;
|
||||||
use servo_net::resource_task::ResourceTask;
|
use servo_net::resource_task::ResourceTask;
|
||||||
use servo_util::time::{Profiler, ProfilerChan, PrintMsg};
|
use servo_util::time::{Profiler, ProfilerChan, PrintMsg};
|
||||||
use extra::uv_global_loop;
|
|
||||||
|
|
||||||
pub use gfx::opts::Opts;
|
pub use gfx::opts::Opts;
|
||||||
pub use gfx::text;
|
pub use gfx::text;
|
||||||
|
@ -105,6 +104,7 @@ fn run(opts: &Opts) {
|
||||||
let (profiler_port, profiler_chan) = comm::stream();
|
let (profiler_port, profiler_chan) = comm::stream();
|
||||||
let profiler_chan = ProfilerChan::new(profiler_chan);
|
let profiler_chan = ProfilerChan::new(profiler_chan);
|
||||||
Profiler::create(profiler_port);
|
Profiler::create(profiler_port);
|
||||||
|
/*
|
||||||
do opts.profiler_period.map |period| {
|
do opts.profiler_period.map |period| {
|
||||||
let profiler_chan = profiler_chan.clone();
|
let profiler_chan = profiler_chan.clone();
|
||||||
let period = *period;
|
let period = *period;
|
||||||
|
@ -116,6 +116,8 @@ fn run(opts: &Opts) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
fail!("stubbed out!");
|
||||||
|
|
||||||
// Create the compositor.
|
// Create the compositor.
|
||||||
let (compositor_port, compositor_chan) = comm::stream();
|
let (compositor_port, compositor_chan) = comm::stream();
|
||||||
|
|
|
@ -22,8 +22,6 @@ use std::comm::Chan;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use js::jsapi::JSVal;
|
use js::jsapi::JSVal;
|
||||||
use extra::timer;
|
|
||||||
use extra::uv_global_loop;
|
|
||||||
|
|
||||||
pub enum TimerControlMsg {
|
pub enum TimerControlMsg {
|
||||||
TimerMessage_Fire(~TimerData),
|
TimerMessage_Fire(~TimerData),
|
||||||
|
@ -141,6 +139,7 @@ impl BindingObject for Window {
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
pub fn SetTimeout(&self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 {
|
pub fn SetTimeout(&self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 {
|
||||||
|
/*
|
||||||
let timeout = int::max(0, timeout) as uint;
|
let timeout = int::max(0, timeout) as uint;
|
||||||
|
|
||||||
// Post a delayed message to the per-window timer task; it will dispatch it
|
// Post a delayed message to the per-window timer task; it will dispatch it
|
||||||
|
@ -153,6 +152,8 @@ impl Window {
|
||||||
timeout,
|
timeout,
|
||||||
&self.timer_chan,
|
&self.timer_chan,
|
||||||
TimerMessage_Fire(data));
|
TimerMessage_Fire(data));
|
||||||
|
*/
|
||||||
|
fail!("stubbed out!");
|
||||||
return 0; //TODO return handle into list of active timers
|
return 0; //TODO return handle into list of active timers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue