Index: content/browser/compositor/reflector_impl.cc |
diff --git a/content/browser/compositor/reflector_impl.cc b/content/browser/compositor/reflector_impl.cc |
index c2d19b136f07f14b9117810858f2cdae70873108..10b549b31e77ba75bb3e6628a753df405fb284f6 100644 |
--- a/content/browser/compositor/reflector_impl.cc |
+++ b/content/browser/compositor/reflector_impl.cc |
@@ -21,12 +21,16 @@ ReflectorImpl::ReflectorImpl( |
int surface_id) |
: impl_unsafe_(output_surface_map), |
main_unsafe_(mirrored_compositor, mirroring_layer), |
- impl_message_loop_(compositor_thread_loop), |
main_message_loop_(base::MessageLoopProxy::current()), |
surface_id_(surface_id) { |
GLHelper* helper = ImageTransportFactory::GetInstance()->GetGLHelper(); |
MainThreadData& main = GetMain(); |
main.mailbox = new OwnedMailbox(helper); |
+ if (!compositor_thread_loop) { |
+ impl_message_loop_ = main_message_loop_; |
+ } else { |
+ impl_message_loop_ = compositor_thread_loop; |
+ } |
impl_message_loop_->PostTask( |
FROM_HERE, |
base::Bind( |