Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: cc/base/list_container_helper.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/base/list_container_helper.h ('k') | cc/base/list_container_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/base/list_container_helper.h ('k') | cc/base/list_container_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698