Class for allocating a chunk of memory for RenderPass
For DrawQuads and SharedQuadState, RenderPass used allocate them one by one whenever needed. This new class helps RenderPass manages allocation and iteration of those two types. This container allocates a chunk of memory at one time and hands out raw pointers. It also provides iterator and reverse iterators for going through its contents. Unittest for ListContainer makes sure the raw pointers it hands out are valid and iterator has same behavior as vector iterators. Follows 398533002, and 404563005. BUG=344962 Committed: https://crrev.com/6ae8c50c839a8c0d8fb399578256c754ed3ce39a Cr-Commit-Position: refs/heads/master@{#296100} Review URL: https://codereview.chromium.org/400463002 Cr-Commit-Position: refs/heads/master@{#296176}
Showing
cc/quads/list_container.cc
0 → 100644
This diff is collapsed.
cc/quads/list_container.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment