viz: Change OverlayResources::size_in_pixels to a single Size
.*DrawQuad::OverlayResources::size_in pixels used to be a vector of 4. Looking at the code, we always index the first one and we never use the rest of the array. This reduces the size of TextureDrawQuad that is the biggest DrawQuad. Since QuadList uses the size of the biggest DrawQuad to allocate any quad, this CL will reduce the memory used by QuadList, even if TextureDrawQuads are not used. Change-Id: I554cb1b313519094a893cba6342ad47c15882827 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2058834Reviewed-by:ccameron <ccameron@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Commit-Queue: Robert Sesek <rsesek@chromium.org> Auto-Submit: Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#742259}
Showing
Please register or sign in to comment