gpu: Reduce GL context switches used to check pending queries.

This reduces the frequency of GL context switches for checking
pending queries by keeping track of the last time we checked
queries. Instead of simply posting as task that will switch
context and process pending queries we now keep track of the
time at which we should process queries and only when we have
reached this time will we switch context and process queries.

BUG=522903,436314

Review URL: https://codereview.chromium.org/1315713007

Cr-Commit-Position: refs/heads/master@{#349502}
11 files changed