Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 10 | -10/+10 |
| | |||||
* | Update crossbeam-channel to 0.3 | Bastien Orivel | 2018-11-18 | 3 | -3/+3 |
| | |||||
* | Unify the task source and task canceller API | Agustin Chiappe Berrini | 2018-11-14 | 1 | -17/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599) | ||||
* | Implement TaskSource for HistoryTraversal | Agustin Chiappe Berrini | 2018-11-13 | 1 | -5/+25 |
| | | | | | And remove the method in window that returns it, because it isn't used so far. | ||||
* | `cargo fix --edition-idioms` | Simon Sapin | 2018-11-08 | 7 | -7/+7 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 2 | -3/+3 |
| | |||||
* | Sort `use` statements | Simon Sapin | 2018-11-06 | 9 | -18/+18 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 10 | -49/+49 |
| | |||||
* | Make first argument of DOMManipulationTaskSource as a Box<ScriptChan + | CYBAI | 2018-10-18 | 1 | -8/+13 |
| | | | | | | | | | | | Send> We don't have `window` for `workers`. So, if we use `global.as_window()` to get the DOMManipulationTaskSource, it will make worker panic. Instead, we should get the DOMManipulationTaskSource from each own thread. Ref: https://github.com/servo/servo/pull/20755#discussion_r193557746 | ||||
* | Add task source for media element | chansuke | 2018-10-10 | 2 | -0/+53 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 9 | -63/+41 |
| | |||||
* | Replace mpsc with crossbeam/servo channel, update ipc-channel | Simon Sapin | 2018-09-12 | 3 | -3/+3 |
| | | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com> | ||||
* | Add Websocket task source | Agustin Chiappe Berrini | 2018-09-08 | 2 | -1/+40 |
| | | | | | | | | According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network The task source for all tasks queued in the websocket section are the websocket task source, so this commit also updates those references to use the appropriate one. | ||||
* | Add the TaskSourceName to CommonScriptMsg::Task | Agustin Chiappe Berrini | 2018-09-04 | 7 | -5/+12 |
| | | | | Update QueuedTaskConversion and the TaskQueue to use it | ||||
* | use remote-event task source in EventSource | Gregory Terzian | 2018-07-13 | 2 | -1/+39 |
| | |||||
* | introduce "per task source" ignoring of tasks | Gregory Terzian | 2018-07-10 | 6 | -6/+41 |
| | |||||
* | added pipelines to all task sources | ddh | 2017-10-25 | 5 | -14/+19 |
| | | | | changed task sources to accept pipeline ids | ||||
* | added time to interactive metrics, refactored metrics to use traits | ddh | 2017-10-24 | 5 | -1/+7 |
| | | | | changed task macro to take pipeline info | ||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 6 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax. | ||||
* | Introduce TaskOnce | Anthony Ramine | 2017-09-20 | 6 | -35/+38 |
| | | | | | Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing from CancellableTask<T>. | ||||
* | Rename Task to TaskBox | Anthony Ramine | 2017-09-20 | 6 | -16/+16 |
| | |||||
* | Make Task require Send | Anthony Ramine | 2017-09-20 | 6 | -8/+11 |
| | |||||
* | Use task! to notify performance observers | Anthony Ramine | 2017-09-18 | 1 | -21/+7 |
| | |||||
* | Move Task to its own module | Anthony Ramine | 2017-09-18 | 6 | -6/+8 |
| | |||||
* | Introduce MainThreadScriptMsg::DispatchJobQueue | Anthony Ramine | 2017-09-17 | 1 | -16/+0 |
| | | | | This removes the last remaining use of Task::run_with_script_thread | ||||
* | Send AsyncJobHandler as a MainThreadTask | Anthony Ramine | 2017-09-16 | 1 | -0/+16 |
| | |||||
* | Remove FileReadingRunnable | Anthony Ramine | 2017-09-16 | 1 | -15/+3 |
| | |||||
* | Rename Runnable to Task | Anthony Ramine | 2017-09-16 | 6 | -70/+83 |
| | | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`. | ||||
* | Reformat some task-related functions | Anthony Ramine | 2017-09-08 | 2 | -10/+16 |
| | |||||
* | Kill UserInteractionTask | Anthony Ramine | 2017-09-08 | 1 | -17/+7 |
| | | | | Just use a bare Runnable value. | ||||
* | Kill DOMManipulationTask | Anthony Ramine | 2017-09-08 | 1 | -17/+7 |
| | | | | Just use a bare Runnable value. | ||||
* | Kill Runnable::is_cancelled ⚔️ | Anthony Ramine | 2017-09-07 | 2 | -6/+2 |
| | |||||
* | Make Performance Timeline API work in Workers | Fernando Jiménez Moreno | 2017-09-05 | 1 | -26/+38 |
| | |||||
* | order derivable traits lists | Clément DAVID | 2017-08-23 | 3 | -3/+3 |
| | | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs | ||||
* | Performance Timeline API | Fernando Jiménez Moreno | 2017-08-17 | 2 | -0/+59 |
| | |||||
* | Added Debug implementations. | Alan Jeffrey | 2017-06-13 | 2 | -0/+26 |
| | |||||
* | Properly implement TaskSource for NetworkingTaskSource | Keith Yeung | 2016-11-11 | 1 | -9/+22 |
| | |||||
* | Update to string-cache 0.3 | Simon Sapin | 2016-11-03 | 2 | -2/+2 |
| | |||||
* | Make TaskSource::queue take a &GlobalScope | Anthony Ramine | 2016-10-06 | 3 | -8/+8 |
| | |||||
* | Introduce GlobalScope::get_runnable_wrapper | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Implement file reading task source | Keith Yeung | 2016-07-14 | 1 | -9/+62 |
| | | | | And remove superfluous FileReaderEvent enum | ||||
* | Make task queue API usable from non-main threads. | Josh Matthews | 2016-07-14 | 3 | -12/+29 |
| | |||||
* | Move boxing to runnable initialization | Connor Brewster | 2016-07-13 | 3 | -6/+6 |
| | |||||
* | Make all task source runnables cancellable | Connor Brewster | 2016-07-13 | 3 | -15/+23 |
| | | | | Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable | ||||
* | Add event runnables | Connor Brewster | 2016-07-11 | 2 | -49/+33 |
| | | | | Make tasks a wrapper over runnables | ||||
* | Combined DOMManipulationTask runnable variants into a single variant | Connor Brewster | 2016-07-06 | 1 | -18/+8 |
| | |||||
* | Add Miscellaneous event type to DOM task source | Manish Goregaokar | 2016-07-05 | 1 | -2/+4 |
| | |||||
* | Derive Clone for DOMManipulationTaskSource, UserInteractionTaskSource. | Ms2ger | 2016-06-03 | 2 | -10/+2 |
| | |||||
* | Clean up DOMManipulationTaskSource | Keith Yeung | 2016-06-02 | 1 | -6/+22 |
| | |||||
* | Removed unused imports | Per Lundberg | 2016-05-15 | 1 | -1/+0 |
| | | | | This fixes #11185. |