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

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

Issue 1159573002: cc: Move cc/quads/list_container.* files to cc/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
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/quads/list_container.h" 5 #include "cc/base/list_container.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
11 #include "cc/playback/display_item.h"
12 #include "cc/quads/draw_quad.h"
13 #include "cc/quads/shared_quad_state.h"
14 11
15 namespace { 12 namespace {
16 const size_t kDefaultNumElementTypesToReserve = 32; 13 const size_t kDefaultNumElementTypesToReserve = 32;
17 } // namespace 14 } // namespace
18 15
19 namespace cc { 16 namespace cc {
20 17
21 // ListContainerCharAllocator 18 // ListContainerCharAllocator
22 //////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////
23 // This class deals only with char* and void*. It does allocation and passing 20 // This class deals only with char* and void*. It does allocation and passing
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 this->ReverseIncrement(); 703 this->ReverseIncrement();
707 ++index_; 704 ++index_;
708 return *this; 705 return *this;
709 } 706 }
710 707
711 template <typename BaseElementType> 708 template <typename BaseElementType>
712 size_t ListContainer<BaseElementType>::ConstReverseIterator::index() const { 709 size_t ListContainer<BaseElementType>::ConstReverseIterator::index() const {
713 return index_; 710 return index_;
714 } 711 }
715 712
716 template class ListContainer<SharedQuadState>;
717 template class ListContainer<DrawQuad>;
718 template class ListContainer<DisplayItem>;
719
720 } // namespace cc 713 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/list_container.h ('k') | cc/cc.gyp » ('j') | cc/playback/display_item_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698