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

Unified Diff: Source/core/platform/Partitions.h

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/Partitions.h
diff --git a/Source/core/platform/Task.h b/Source/core/platform/Partitions.h
similarity index 78%
copy from Source/core/platform/Task.h
copy to Source/core/platform/Partitions.h
index b9d2e46802aebf6391df4ec3dabb580d43b2483c..fe2d148e031293c783516666cae8f5d6c16266f1 100644
--- a/Source/core/platform/Task.h
+++ b/Source/core/platform/Partitions.h
@@ -28,30 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Task_h
-#define Task_h
+#ifndef Partitions_h
+#define Partitions_h
-#include "wtf/Functional.h"
-#include "public/platform/WebThread.h"
+#include "wtf/PartitionAlloc.h"
namespace WebCore {
-class Task : public WebKit::WebThread::Task {
+class Partitions {
public:
- explicit Task(const Closure& closure)
- : m_closure(closure)
- {
- }
+ static void init();
+ static void shutdown();
- virtual void run() OVERRIDE
- {
- m_closure();
- }
+ ALWAYS_INLINE static PartitionRoot* getObjectModelPartition() { return &m_objectModelRoot; }
+ ALWAYS_INLINE static PartitionRoot* getRenderingPartition() { return &m_renderingRoot; }
private:
- Closure m_closure;
+ static PartitionRoot m_objectModelRoot;
+ static PartitionRoot m_renderingRoot;
};
} // namespace WebCore
-#endif // Task_h
+#endif // Partitions_h

Powered by Google App Engine
This is Rietveld 408576698