Skip to content

Commit

Permalink
Cancel compositor task that cannot be completed
Browse files Browse the repository at this point in the history
  • Loading branch information
rojkov committed Nov 6, 2014
1 parent c138b7d commit d760808
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -125,6 +125,7 @@ void
EmbedLiteCompositorParent::ScheduleTask(CancelableTask* task, int time)
{
if (Invalidate()) {
task->Cancel();
CancelCurrentCompositeTask();
} else {
CompositorParent::ScheduleTask(task, time);
Expand All @@ -138,7 +139,7 @@ EmbedLiteCompositorParent::Invalidate()
EmbedLiteView* view = EmbedLiteApp::GetInstance()->GetViewByID(mId);
if (!view) {
LOGE("view not available.. forgot SuspendComposition call?");
return false;
return true;
}

UpdateTransformState();
Expand Down

0 comments on commit d760808

Please sign in to comment.