summaryrefslogtreecommitdiffstats
path: root/mojo/mojo_base.gyp
diff options
context:
space:
mode:
authorericrk <ericrk@chromium.org>2015-07-15 10:55:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-15 17:55:56 +0000
commit9c79932e180918336f6140236a2cdedcaed4f535 (patch)
tree52154821af971cf7614e8675e8fbfd8c58990dd4 /mojo/mojo_base.gyp
parent84d47ef5061ae8ac0d5de2525c8c8c17cf8f439d (diff)
downloadchromium_src-9c79932e180918336f6140236a2cdedcaed4f535.zip
chromium_src-9c79932e180918336f6140236a2cdedcaed4f535.tar.gz
chromium_src-9c79932e180918336f6140236a2cdedcaed4f535.tar.bz2
Rebind EGL context to flush driver caches
Android Adreno drivers do not flush caches on glFinish, making it hard to clear up app resources when going to the background. To work around this, we introduce a glFlushDriverCachesCHROMIUM call which does the right thing based on the driver workaround list. On most cards, this call simply does a glFinish, which will clean up driver caches. On Adreno GPUs, this call binds a NULL surface/context then re-binds the correct surface/context. This causes the driver's texture cache to flush, reducing our memory usage by around ~6mb. BUG=505495,509727 Review URL: https://codereview.chromium.org/1241433003 Cr-Commit-Position: refs/heads/master@{#338883}
Diffstat (limited to 'mojo/mojo_base.gyp')
0 files changed, 0 insertions, 0 deletions