mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename TaskState::RENDER -> TaskState::PAINT
This commit is contained in:
parent
a9839fa18e
commit
4d562f893c
2 changed files with 3 additions and 3 deletions
|
@ -177,7 +177,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send {
|
|||
time_profiler_chan: TimeProfilerChan,
|
||||
shutdown_chan: Sender<()>) {
|
||||
let ConstellationChan(c) = constellation_chan.clone();
|
||||
spawn_named_with_send_on_failure("PaintTask", task_state::RENDER, proc() {
|
||||
spawn_named_with_send_on_failure("PaintTask", task_state::PAINT, proc() {
|
||||
{
|
||||
// Ensures that the render task and graphics context are destroyed before the
|
||||
// shutdown message.
|
||||
|
|
|
@ -15,7 +15,7 @@ bitflags! {
|
|||
flags TaskState: u32 {
|
||||
const SCRIPT = 0x01,
|
||||
const LAYOUT = 0x02,
|
||||
const RENDER = 0x04,
|
||||
const PAINT = 0x04,
|
||||
|
||||
const IN_WORKER = 0x0100,
|
||||
const IN_GC = 0x0200,
|
||||
|
@ -40,7 +40,7 @@ macro_rules! task_types ( ( $( $fun:ident = $flag:ident ; )* ) => (
|
|||
task_types! {
|
||||
is_script = SCRIPT;
|
||||
is_layout = LAYOUT;
|
||||
is_render = RENDER;
|
||||
is_paint = PAINT;
|
||||
}
|
||||
|
||||
#[cfg(not(ndebug))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue