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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1041103002: PartitionAlloc: Centralize Partition allocators into one place (Part 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "core/layout/LayoutScrollbarPart.h" 67 #include "core/layout/LayoutScrollbarPart.h"
68 #include "core/layout/LayoutTreeAsText.h" 68 #include "core/layout/LayoutTreeAsText.h"
69 #include "core/layout/LayoutView.h" 69 #include "core/layout/LayoutView.h"
70 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h" 70 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h"
71 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" 71 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h"
72 #include "core/layout/svg/LayoutSVGRoot.h" 72 #include "core/layout/svg/LayoutSVGRoot.h"
73 #include "core/layout/svg/ReferenceFilterBuilder.h" 73 #include "core/layout/svg/ReferenceFilterBuilder.h"
74 #include "core/page/Page.h" 74 #include "core/page/Page.h"
75 #include "core/page/scrolling/ScrollingCoordinator.h" 75 #include "core/page/scrolling/ScrollingCoordinator.h"
76 #include "platform/LengthFunctions.h" 76 #include "platform/LengthFunctions.h"
77 #include "platform/Partitions.h"
78 #include "platform/RuntimeEnabledFeatures.h" 77 #include "platform/RuntimeEnabledFeatures.h"
79 #include "platform/TraceEvent.h" 78 #include "platform/TraceEvent.h"
80 #include "platform/geometry/FloatPoint3D.h" 79 #include "platform/geometry/FloatPoint3D.h"
81 #include "platform/geometry/FloatRect.h" 80 #include "platform/geometry/FloatRect.h"
82 #include "platform/geometry/TransformState.h" 81 #include "platform/geometry/TransformState.h"
83 #include "platform/graphics/filters/ReferenceFilter.h" 82 #include "platform/graphics/filters/ReferenceFilter.h"
84 #include "platform/graphics/filters/SourceGraphic.h" 83 #include "platform/graphics/filters/SourceGraphic.h"
85 #include "platform/transforms/ScaleTransformOperation.h" 84 #include "platform/transforms/ScaleTransformOperation.h"
86 #include "platform/transforms/TransformationMatrix.h" 85 #include "platform/transforms/TransformationMatrix.h"
87 #include "platform/transforms/TranslateTransformOperation.h" 86 #include "platform/transforms/TranslateTransformOperation.h"
88 #include "public/platform/Platform.h" 87 #include "public/platform/Platform.h"
88 #include "wtf/Partitions.h"
89 #include "wtf/StdLibExtras.h" 89 #include "wtf/StdLibExtras.h"
90 #include "wtf/text/CString.h" 90 #include "wtf/text/CString.h"
91 91
92 namespace blink { 92 namespace blink {
93 93
94 namespace { 94 namespace {
95 95
96 static CompositingQueryMode gCompositingQueryMode = 96 static CompositingQueryMode gCompositingQueryMode =
97 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases; 97 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases;
98 98
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 return clipRect; 1202 return clipRect;
1203 } 1203 }
1204 1204
1205 LayoutRect DeprecatedPaintLayer::paintingExtent(const DeprecatedPaintLayer* root Layer, const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior paintBehavior) 1205 LayoutRect DeprecatedPaintLayer::paintingExtent(const DeprecatedPaintLayer* root Layer, const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior paintBehavior)
1206 { 1206 {
1207 return intersection(transparencyClipBox(this, rootLayer, PaintingTransparenc yClipBox, RootOfTransparencyClipBox, subPixelAccumulation, paintBehavior), paint DirtyRect); 1207 return intersection(transparencyClipBox(this, rootLayer, PaintingTransparenc yClipBox, RootOfTransparencyClipBox, subPixelAccumulation, paintBehavior), paint DirtyRect);
1208 } 1208 }
1209 1209
1210 void* DeprecatedPaintLayer::operator new(size_t sz) 1210 void* DeprecatedPaintLayer::operator new(size_t sz)
1211 { 1211 {
1212 return partitionAlloc(Partitions::getRenderingPartition(), sz); 1212 return partitionAlloc(WTF::Partitions::getRenderingPartition(), sz);
1213 } 1213 }
1214 1214
1215 void DeprecatedPaintLayer::operator delete(void* ptr) 1215 void DeprecatedPaintLayer::operator delete(void* ptr)
1216 { 1216 {
1217 partitionFree(ptr); 1217 partitionFree(ptr);
1218 } 1218 }
1219 1219
1220 void DeprecatedPaintLayer::addChild(DeprecatedPaintLayer* child, DeprecatedPaint Layer* beforeChild) 1220 void DeprecatedPaintLayer::addChild(DeprecatedPaintLayer* child, DeprecatedPaint Layer* beforeChild)
1221 { 1221 {
1222 DeprecatedPaintLayer* prevSibling = beforeChild ? beforeChild->previousSibli ng() : lastChild(); 1222 DeprecatedPaintLayer* prevSibling = beforeChild ? beforeChild->previousSibli ng() : lastChild();
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 } 2968 }
2969 } 2969 }
2970 2970
2971 void showLayerTree(const blink::LayoutObject* renderer) 2971 void showLayerTree(const blink::LayoutObject* renderer)
2972 { 2972 {
2973 if (!renderer) 2973 if (!renderer)
2974 return; 2974 return;
2975 showLayerTree(renderer->enclosingLayer()); 2975 showLayerTree(renderer->enclosingLayer());
2976 } 2976 }
2977 #endif 2977 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698