gpu: Fix oop raster font cache memory leak.
The code for tracking locked font handles on the service currently assumes that only one DoRasterCHROMIUM command is interleaved between a Begin/EndRaster sequence, which is an incorrect assumption. As a result since we clear the vector of locked handles in each DoRasterCHROMIUM, this leaks ref-counts if multiple DoRasterCHROMIUM commands are present between a single Begin/EndRaster sequence. Fix this by appending ref-counts on the service instead of over-writing the current list. R=piman@chromium.org Bug: 829622 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I15025153fe887e712e0879cbeb32944c3e258e92 Reviewed-on: https://chromium-review.googlesource.com/1077819 Commit-Queue: Khushal <khushalsagar@chromium.org> Reviewed-by:Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#563092}
Showing
Please register or sign in to comment