OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/src/fgas/crt/fgas_memory.h" | 7 #include "xfa/fgas/crt/fgas_memory.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 class CFX_DefStore : public IFX_MEMAllocator, public CFX_Target { | 13 class CFX_DefStore : public IFX_MEMAllocator, public CFX_Target { |
14 public: | 14 public: |
15 CFX_DefStore() {} | 15 CFX_DefStore() {} |
16 ~CFX_DefStore() {} | 16 ~CFX_DefStore() {} |
17 virtual void Release() { delete this; } | 17 virtual void Release() { delete this; } |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } | 437 } |
438 FX_Free(pChunk); | 438 FX_Free(pChunk); |
439 } | 439 } |
440 } | 440 } |
441 size_t CFX_DynamicStore::SetDefChunkSize(size_t size) { | 441 size_t CFX_DynamicStore::SetDefChunkSize(size_t size) { |
442 FXSYS_assert(size != 0); | 442 FXSYS_assert(size != 0); |
443 size_t v = m_iDefChunkSize; | 443 size_t v = m_iDefChunkSize; |
444 m_iDefChunkSize = size; | 444 m_iDefChunkSize = size; |
445 return v; | 445 return v; |
446 } | 446 } |
OLD | NEW |