• Khushal's avatar
    gpu: Fix oop raster font cache memory leak. · db6ea3c0
    Khushal authored
    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: default avatarAntoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#563092}
    db6ea3c0
raster_in_process_context.cc 5 KB