OLD | NEW |
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 PaintLayerPainter_h | 5 #ifndef PaintLayerPainter_h |
6 #define PaintLayerPainter_h | 6 #define PaintLayerPainter_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/paint/PaintLayerFragment.h" | 9 #include "core/paint/PaintLayerFragment.h" |
10 #include "core/paint/PaintLayerPaintingInfo.h" | 10 #include "core/paint/PaintLayerPaintingInfo.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 PaintLayerFlags); | 132 PaintLayerFlags); |
133 | 133 |
134 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, | 134 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, |
135 const ClipRect&); | 135 const ClipRect&); |
136 | 136 |
137 // Returns whether this layer should be painted during sofware painting (i.e., | 137 // Returns whether this layer should be painted during sofware painting (i.e., |
138 // not via calls from CompositedLayerMapping to draw into composited layers). | 138 // not via calls from CompositedLayerMapping to draw into composited layers). |
139 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, | 139 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, |
140 PaintLayerFlags paintFlags); | 140 PaintLayerFlags paintFlags); |
141 | 141 |
| 142 // Convert a fragmentOffset from the coordinate system of this painter's |
| 143 // layer to the coordinate system of the layer in which it's border radius |
| 144 // clip rect is defined, for painting composited children using mask layers. |
| 145 LayoutPoint fragmentOffsetForAncestorClipMask(const LayoutPoint&); |
| 146 |
142 PaintLayer& m_paintLayer; | 147 PaintLayer& m_paintLayer; |
143 }; | 148 }; |
144 | 149 |
145 } // namespace blink | 150 } // namespace blink |
146 | 151 |
147 #endif // PaintLayerPainter_h | 152 #endif // PaintLayerPainter_h |
OLD | NEW |