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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintInfo.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
44 #include "wtf/ListHashSet.h" 44 #include "wtf/ListHashSet.h"
45 45
46 #include <limits> 46 #include <limits>
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class LayoutBoxModelObject; 50 class LayoutBoxModelObject;
51 51
52 struct CORE_EXPORT PaintInfo { 52 struct CORE_EXPORT PaintInfo {
53 USING_FAST_MALLOC(PaintInfo);
54
55 public:
53 PaintInfo(GraphicsContext& newContext, 56 PaintInfo(GraphicsContext& newContext,
54 const IntRect& cullRect, 57 const IntRect& cullRect,
55 PaintPhase newPhase, 58 PaintPhase newPhase,
56 GlobalPaintFlags globalPaintFlags, 59 GlobalPaintFlags globalPaintFlags,
57 PaintLayerFlags paintFlags, 60 PaintLayerFlags paintFlags,
58 const LayoutBoxModelObject* newPaintContainer = nullptr) 61 const LayoutBoxModelObject* newPaintContainer = nullptr)
59 : context(newContext), 62 : context(newContext),
60 phase(newPhase), 63 phase(newPhase),
61 m_cullRect(cullRect), 64 m_cullRect(cullRect),
62 m_paintContainer(newPaintContainer), 65 m_paintContainer(newPaintContainer),
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const GlobalPaintFlags m_globalPaintFlags; 132 const GlobalPaintFlags m_globalPaintFlags;
130 133
131 // TODO(chrishtr): temporary while we implement CullRect everywhere. 134 // TODO(chrishtr): temporary while we implement CullRect everywhere.
132 friend class SVGPaintContext; 135 friend class SVGPaintContext;
133 friend class SVGShapePainter; 136 friend class SVGShapePainter;
134 }; 137 };
135 138
136 } // namespace blink 139 } // namespace blink
137 140
138 #endif // PaintInfo_h 141 #endif // PaintInfo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698