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

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

Issue 2783913002: Start USING_FAST_MALLOC for more paint data structures (Closed)
Patch Set: 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 WTF_MAKE_NONCOPYABLE(DisableCompositingQueryAsserts); 87 WTF_MAKE_NONCOPYABLE(DisableCompositingQueryAsserts);
88 88
89 public: 89 public:
90 DisableCompositingQueryAsserts(); 90 DisableCompositingQueryAsserts();
91 91
92 private: 92 private:
93 AutoReset<CompositingQueryMode> m_disabler; 93 AutoReset<CompositingQueryMode> m_disabler;
94 }; 94 };
95 95
96 struct PaintLayerRareData { 96 struct PaintLayerRareData {
97 USING_FAST_MALLOC(PaintLayerRareData);
98 WTF_MAKE_NONCOPYABLE(PaintLayerRareData);
99
100 public:
97 PaintLayerRareData(); 101 PaintLayerRareData();
98 ~PaintLayerRareData(); 102 ~PaintLayerRareData();
99 103
100 // Our current relative position offset. 104 // Our current relative position offset.
101 LayoutSize offsetForInFlowPosition; 105 LayoutSize offsetForInFlowPosition;
102 106
103 std::unique_ptr<TransformationMatrix> transform; 107 std::unique_ptr<TransformationMatrix> transform;
104 108
105 // Pointer to the enclosing Layer that caused us to be paginated. It is 0 if 109 // Pointer to the enclosing Layer that caused us to be paginated. It is 0 if
106 // we are not paginated. 110 // we are not paginated.
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1252
1249 } // namespace blink 1253 } // namespace blink
1250 1254
1251 #ifndef NDEBUG 1255 #ifndef NDEBUG
1252 // Outside the WebCore namespace for ease of invocation from gdb. 1256 // Outside the WebCore namespace for ease of invocation from gdb.
1253 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1257 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1254 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1258 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1255 #endif 1259 #endif
1256 1260
1257 #endif // Layer_h 1261 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698