cc: Do not post task to notify Scheduler of lost context.
commit67bc099b6498915f647fbcab2bf85c0c27a3d733
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 24 Sep 2013 06:24:03 +0000 (24 06:24 +0000)
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 24 Sep 2013 06:24:03 +0000 (24 06:24 +0000)
treecaf990a70b6045c37c2b32f2b6dca64cde9224cf
parentdcb933f3c298fc242fec73eb385f7b7f2ddb8b93
cc: Do not post task to notify Scheduler of lost context.

This fixes a race condition where, until the posted task notifying
the Scheduler has been run, the Scheduler will think that there
is an OutputSurface when there really isn't.

I added DCHECKs that fail reliably much closer to the
source in existing unit tests.

BUG=297268

Review URL: https://chromiumcodereview.appspot.com/24040004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224915 0039d316-1c4b-4281-b951-d872f2087c98
cc/scheduler/scheduler.cc
cc/scheduler/scheduler_state_machine.cc
cc/trees/thread_proxy.cc