| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003 Apple Computer, Inc. | 2 * Copyright (C) 2003 Apple Computer, Inc. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * version of this file under the LGPL, indicate your decision by | 28 * version of this file under the LGPL, indicate your decision by |
| 29 * deletingthe provisions above and replace them with the notice and | 29 * deletingthe provisions above and replace them with the notice and |
| 30 * other provisions required by the MPL or the GPL, as the case may be. | 30 * other provisions required by the MPL or the GPL, as the case may be. |
| 31 * If you do not delete the provisions above, a recipient may use your | 31 * If you do not delete the provisions above, a recipient may use your |
| 32 * version of this file under any of the LGPL, the MPL or the GPL. | 32 * version of this file under any of the LGPL, the MPL or the GPL. |
| 33 */ | 33 */ |
| 34 | 34 |
| 35 #ifndef RenderArena_h | 35 #ifndef RenderArena_h |
| 36 #define RenderArena_h | 36 #define RenderArena_h |
| 37 | 37 |
| 38 #include "Arena.h" | 38 #include "core/platform/Arena.h" |
| 39 #include <wtf/FastAllocBase.h> | 39 #include <wtf/FastAllocBase.h> |
| 40 #include <wtf/Noncopyable.h> | 40 #include <wtf/Noncopyable.h> |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 static const size_t gMaxRecycledSize = 1024; | 44 static const size_t gMaxRecycledSize = 1024; |
| 45 | 45 |
| 46 class RenderArena { | 46 class RenderArena { |
| 47 WTF_MAKE_NONCOPYABLE(RenderArena); WTF_MAKE_FAST_ALLOCATED; | 47 WTF_MAKE_NONCOPYABLE(RenderArena); WTF_MAKE_FAST_ALLOCATED; |
| 48 public: | 48 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 67 static const size_t kRecyclerShift = (sizeof(void*) == 8) ? 3 : 2; | 67 static const size_t kRecyclerShift = (sizeof(void*) == 8) ? 3 : 2; |
| 68 void* m_recyclers[gMaxRecycledSize >> kRecyclerShift]; | 68 void* m_recyclers[gMaxRecycledSize >> kRecyclerShift]; |
| 69 | 69 |
| 70 size_t m_totalSize; | 70 size_t m_totalSize; |
| 71 size_t m_totalAllocated; | 71 size_t m_totalAllocated; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace WebCore | 74 } // namespace WebCore |
| 75 | 75 |
| 76 #endif // RenderArena_h | 76 #endif // RenderArena_h |
| OLD | NEW |