OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/base/list_container_helper.h" | 5 #include "cc/base/list_container_helper.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 | 14 |
12 namespace { | 15 namespace { |
13 const size_t kDefaultNumElementTypesToReserve = 32; | 16 const size_t kDefaultNumElementTypesToReserve = 32; |
14 } // namespace | 17 } // namespace |
15 | 18 |
16 namespace cc { | 19 namespace cc { |
17 | 20 |
18 // CharAllocator | 21 // CharAllocator |
19 //////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////// |
20 // This class deals only with char* and void*. It does allocation and passing | 23 // This class deals only with char* and void*. It does allocation and passing |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 : PositionInCharAllocator(container, vector_ind, item_iter), | 549 : PositionInCharAllocator(container, vector_ind, item_iter), |
547 index_(index) {} | 550 index_(index) {} |
548 | 551 |
549 ListContainerHelper::ConstReverseIterator::~ConstReverseIterator() {} | 552 ListContainerHelper::ConstReverseIterator::~ConstReverseIterator() {} |
550 | 553 |
551 size_t ListContainerHelper::ConstReverseIterator::index() const { | 554 size_t ListContainerHelper::ConstReverseIterator::index() const { |
552 return index_; | 555 return index_; |
553 } | 556 } |
554 | 557 |
555 } // namespace cc | 558 } // namespace cc |
OLD | NEW |