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

Side by Side Diff: Source/core/paint/LayerClipRecorder.h

Issue 1319893002: Make classes and structures in core/paint fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayerClipRecorder_h 5 #ifndef LayerClipRecorder_h
6 #define LayerClipRecorder_h 6 #define LayerClipRecorder_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/DeprecatedPaintLayerPaintingInfo.h" 9 #include "core/paint/DeprecatedPaintLayerPaintingInfo.h"
10 #include "core/paint/PaintPhase.h" 10 #include "core/paint/PaintPhase.h"
11 #include "platform/graphics/paint/ClipDisplayItem.h" 11 #include "platform/graphics/paint/ClipDisplayItem.h"
12 #include "platform/graphics/paint/DisplayItem.h" 12 #include "platform/graphics/paint/DisplayItem.h"
13 #include "wtf/Vector.h" 13 #include "wtf/Vector.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class ClipRect; 17 class ClipRect;
18 class GraphicsContext; 18 class GraphicsContext;
19 class LayoutBoxModelObject; 19 class LayoutBoxModelObject;
20 20
21 class CORE_EXPORT LayerClipRecorder { 21 class CORE_EXPORT LayerClipRecorder {
22 WTF_MAKE_FAST_ALLOCATED(LayerClipRecorder);
22 public: 23 public:
23 24
24 enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelf ForBorderRadius }; 25 enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelf ForBorderRadius };
25 26
26 // Set rounded clip rectangles defined by border radii all the way from the DeprecatedPaintLayerPaintingInfo 27 // Set rounded clip rectangles defined by border radii all the way from the DeprecatedPaintLayerPaintingInfo
27 // "root" layer down to the specified layer (or the parent of said layer, in case 28 // "root" layer down to the specified layer (or the parent of said layer, in case
28 // BorderRadiusClippingRule says to skip self). fragmentOffset is used for m ulticol, to specify 29 // BorderRadiusClippingRule says to skip self). fragmentOffset is used for m ulticol, to specify
29 // the translation required to get from flow thread coordinates to visual co ordinates for a 30 // the translation required to get from flow thread coordinates to visual co ordinates for a
30 // certain column. 31 // certain column.
31 // FIXME: The BorderRadiusClippingRule parameter is really useless now. If w e want to skip self, 32 // FIXME: The BorderRadiusClippingRule parameter is really useless now. If w e want to skip self,
(...skipping 12 matching lines...) Expand all
44 BorderRadiusClippingRule, Vector<FloatRoundedRect>& roundedRectClips); 45 BorderRadiusClippingRule, Vector<FloatRoundedRect>& roundedRectClips);
45 46
46 GraphicsContext& m_graphicsContext; 47 GraphicsContext& m_graphicsContext;
47 const LayoutBoxModelObject& m_layoutObject; 48 const LayoutBoxModelObject& m_layoutObject;
48 DisplayItem::Type m_clipType; 49 DisplayItem::Type m_clipType;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif // LayerClipRecorder_h 54 #endif // LayerClipRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698