• weiliangc's avatar
    Class for allocating a chunk of memory for RenderPass · d1f5016c
    weiliangc authored
    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}
    d1f5016c
list_container_unittest.cc 13.8 KB