A GL Query cache of 1024 items is enough (was 4096).
commita5989e1f8931cf00016b5e53a088df6ab6a1f3a1
authorbratell <bratell@opera.com>
Tue, 12 May 2015 09:45:39 +0000 (12 02:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 09:45:47 +0000 (12 09:45 +0000)
tree0981f3428473e54719b0b6fa96b7000cfc70c75b
parent85c035ae19a04cba098b24f2bc4ec04f931700b8
A GL Query cache of 1024 items is enough (was 4096).

Since each QuerySyncManager has its own cache, even a moderate
cache size expands to several hundred KB of memory usage. This makes
it slightly smaller to save some of that memory. It is believed
to be unlikely that the cache has to be big anyway.

In ad-hoc testing I've only seen 20 queries in total (unclear how
many of them were in parallel).

(This is alt #1 in bug 485536)

BUG=485536
R=reveman@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#329383}
gpu/command_buffer/client/query_tracker.h