void AbortFollower::Follow(AbortSignal* aSignal) { MOZ_DIAGNOSTIC_ASSERT(aSignal); Unfollow(); mFollowingSignal = aSignal; aSignal->AddFollower(this); }
void OpenGlRenderState::Follow(const OpenGlMatrix& T_wc, bool follow) { this->T_cw = T_wc.Inverse(); if(follow != this->follow) { if(follow) { const OpenGlMatrix T_vc = GetModelViewMatrix() * T_wc; SetModelViewMatrix(T_vc); this->follow = true; }else{ Unfollow(); } } }
AbortFollower::~AbortFollower() { Unfollow(); }