aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/render_task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-10-23 14:44:17 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-10-24 16:27:37 -0700
commit6ec0939a2248e0e092242076ed5b2cd2486c736c (patch)
treecd945ad95c170c95a99ca96259c7d20bf2b35424 /components/gfx/render_task.rs
parent0162214b1fce3787bb08118790fc4d59d8528306 (diff)
downloadservo-6ec0939a2248e0e092242076ed5b2cd2486c736c.tar.gz
servo-6ec0939a2248e0e092242076ed5b2cd2486c736c.zip
Dynamically check DOMRefCell access from layout in debug builds
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r--components/gfx/render_task.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs
index 976a574f200..0662eef3d99 100644
--- a/components/gfx/render_task.rs
+++ b/components/gfx/render_task.rs
@@ -30,6 +30,7 @@ use servo_util::geometry;
use servo_util::opts;
use servo_util::smallvec::{SmallVec, SmallVec1};
use servo_util::task::spawn_named_with_send_on_failure;
+use servo_util::task_state;
use servo_util::time::{TimeProfilerChan, profile};
use servo_util::time;
use std::comm::{Receiver, Sender, channel};
@@ -151,7 +152,7 @@ impl<C> RenderTask<C> where C: RenderListener + Send {
time_profiler_chan: TimeProfilerChan,
shutdown_chan: Sender<()>) {
let ConstellationChan(c) = constellation_chan.clone();
- spawn_named_with_send_on_failure("RenderTask", proc() {
+ spawn_named_with_send_on_failure("RenderTask", task_state::Render, proc() {
{ // Ensures RenderTask and graphics context are destroyed before shutdown msg
let native_graphics_context = compositor.get_graphics_metadata().map(
|md| NativePaintingGraphicsContext::from_metadata(&md));