Fix num_swapbuffers_complete_pending_ accounting.

Move the accounting into the context itself, which knows accurately when a swapbuffers is sent.
This fixes issues with the GPU process dying while an active tab is in the background.

BUG=chromium-os:16960
TEST=Go to youtube with Pepper Flash, switch to a different tab, kill GPU process, go to youtube tab, check that it still displays. Do it again twice.

Review URL: http://codereview.chromium.org/7313033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92080 0039d316-1c4b-4281-b951-d872f2087c98
7 files changed