angle/samples
Roman Lavrov 4b33633a7c Capture/Replay: Delete binary data in FinishReplay via callback
Delete callback fixes b/179188489 as delete[] will get called from the
same module where allocation happens. When decompress/delete callbacks
not provided, new[] and delete[] are called from the fixture.

AFAICT, gBinaryData == nullptr every time, even with a single test and
--gtest_repeat=N, so we never delete the uncompressed data. When
running multiple tests locally, I see RES usage grow significantly
on Linux which this CL fixes. I don't think this matters for bot runs as
we run tests one by one there.

Bug: b/179188489
Change-Id: Iee3bccb9d6d72c315c4358b70ec9c3c0ac963258
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3858185
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Roman Lavrov <romanl@google.com>
2022-08-29 18:45:47 +00:00
..
WindowTest
capture_replay
gles1
hello_triangle
hello_triangle_gl
mip_map_2d
multi_texture
multi_window
multiple_contexts
multiple_draw_buffers
multiview
particle_system
post_sub_buffer
sample_util
shader_translator
simple_instancing
simple_texture_2d
simple_texture_cubemap
simple_vertex_shader
stencil_operations
tex_redef_microbench
texture_wrap
torus_lighting
tri_fan_microbench
BUILD.gn