Set stencil_bits to 0 for SkiaRenderer
In SkiaOutputDeviceGL we are creating a GrBackendRenderTarget and saying we have created a stencil buffer for it. From what I can tell, we haven't actually created the stencil buffer anywhere. In theory this should have no memory impact since Skia just thinks there is a stencil buffer but doesn't allocate it. Skia should only allocate a small C++ object to track the stencil buffer memory it thinks was allocated. However, pinpoint found a statistically significant memory difference with this change on some stories. This CL fixes skia category memory tracing to be more accurate as well. Bug: 1055190 Change-Id: Ic9a195f3fd68b8c58a65863018307c1b2d7da8b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2112148 Commit-Queue: kylechar <kylechar@chromium.org> Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#753307}
Showing
Please register or sign in to comment