Rename TaskState::RENDER -> TaskState::PAINT

This commit is contained in:
Tetsuharu OHZEKI 2014-12-08 14:23:20 +09:00
parent a9839fa18e
commit 4d562f893c
2 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send {
time_profiler_chan: TimeProfilerChan, time_profiler_chan: TimeProfilerChan,
shutdown_chan: Sender<()>) { shutdown_chan: Sender<()>) {
let ConstellationChan(c) = constellation_chan.clone(); 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 // Ensures that the render task and graphics context are destroyed before the
// shutdown message. // shutdown message.

View file

@ -15,7 +15,7 @@ bitflags! {
flags TaskState: u32 { flags TaskState: u32 {
const SCRIPT = 0x01, const SCRIPT = 0x01,
const LAYOUT = 0x02, const LAYOUT = 0x02,
const RENDER = 0x04, const PAINT = 0x04,
const IN_WORKER = 0x0100, const IN_WORKER = 0x0100,
const IN_GC = 0x0200, const IN_GC = 0x0200,
@ -40,7 +40,7 @@ macro_rules! task_types ( ( $( $fun:ident = $flag:ident ; )* ) => (
task_types! { task_types! {
is_script = SCRIPT; is_script = SCRIPT;
is_layout = LAYOUT; is_layout = LAYOUT;
is_render = RENDER; is_paint = PAINT;
} }
#[cfg(not(ndebug))] #[cfg(not(ndebug))]