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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp

Issue 1412083007: Remove FastAllocBase.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "config.h" 5 #include "config.h"
6 #include "platform/graphics/ContiguousContainer.h" 6 #include "platform/graphics/ContiguousContainer.h"
7 7
8 #include "wtf/Allocator.h"
8 #include "wtf/ContainerAnnotations.h" 9 #include "wtf/ContainerAnnotations.h"
9 #include "wtf/FastAllocBase.h"
10 #include "wtf/PartitionAlloc.h" 10 #include "wtf/PartitionAlloc.h"
11 #include "wtf/Partitions.h" 11 #include "wtf/Partitions.h"
12 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
13 #include <algorithm> 13 #include <algorithm>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 // Default number of max-sized elements to allocate space for, if there is no 17 // Default number of max-sized elements to allocate space for, if there is no
18 // initial buffer. 18 // initial buffer.
19 static const unsigned kDefaultInitialBufferSize = 32; 19 static const unsigned kDefaultInitialBufferSize = 32;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 { 166 {
167 ASSERT(m_buffers.isEmpty() || m_endIndex == m_buffers.size() - 1); 167 ASSERT(m_buffers.isEmpty() || m_endIndex == m_buffers.size() - 1);
168 OwnPtr<Buffer> newBuffer = adoptPtr(new Buffer(bufferSize)); 168 OwnPtr<Buffer> newBuffer = adoptPtr(new Buffer(bufferSize));
169 Buffer* bufferToReturn = newBuffer.get(); 169 Buffer* bufferToReturn = newBuffer.get();
170 m_buffers.append(newBuffer.release()); 170 m_buffers.append(newBuffer.release());
171 m_endIndex = m_buffers.size() - 1; 171 m_endIndex = m_buffers.size() - 1;
172 return bufferToReturn; 172 return bufferToReturn;
173 } 173 }
174 174
175 } // namespace blink 175 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Color.h ('k') | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698