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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 WTF_MAKE_NONCOPYABLE(PaintLayer); 215 WTF_MAKE_NONCOPYABLE(PaintLayer);
216 216
217 public: 217 public:
218 PaintLayer(LayoutBoxModelObject&); 218 PaintLayer(LayoutBoxModelObject&);
219 ~PaintLayer() override; 219 ~PaintLayer() override;
220 220
221 // DisplayItemClient methods 221 // DisplayItemClient methods
222 String debugName() const final; 222 String debugName() const final;
223 LayoutRect visualRect() const final; 223 LayoutRect visualRect() const final;
224 224
225 char approximateHeapMemoryUsage() const;
226
225 LayoutBoxModelObject& layoutObject() const { return m_layoutObject; } 227 LayoutBoxModelObject& layoutObject() const { return m_layoutObject; }
226 LayoutBox* layoutBox() const { 228 LayoutBox* layoutBox() const {
227 return m_layoutObject.isBox() ? &toLayoutBox(m_layoutObject) : 0; 229 return m_layoutObject.isBox() ? &toLayoutBox(m_layoutObject) : 0;
228 } 230 }
229 PaintLayer* parent() const { return m_parent; } 231 PaintLayer* parent() const { return m_parent; }
230 PaintLayer* previousSibling() const { return m_previous; } 232 PaintLayer* previousSibling() const { return m_previous; }
231 PaintLayer* nextSibling() const { return m_next; } 233 PaintLayer* nextSibling() const { return m_next; }
232 PaintLayer* firstChild() const { return m_first; } 234 PaintLayer* firstChild() const { return m_first; }
233 PaintLayer* lastChild() const { return m_last; } 235 PaintLayer* lastChild() const { return m_last; }
234 236
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1250
1249 } // namespace blink 1251 } // namespace blink
1250 1252
1251 #ifndef NDEBUG 1253 #ifndef NDEBUG
1252 // Outside the WebCore namespace for ease of invocation from gdb. 1254 // Outside the WebCore namespace for ease of invocation from gdb.
1253 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1255 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1254 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1256 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1255 #endif 1257 #endif
1256 1258
1257 #endif // Layer_h 1259 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintProperties.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698