| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 PaintLayerFlags); | 121 PaintLayerFlags); |
| 122 | 122 |
| 123 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, | 123 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, |
| 124 const ClipRect&); | 124 const ClipRect&); |
| 125 | 125 |
| 126 // Returns whether this layer should be painted during sofware painting (i.e., | 126 // Returns whether this layer should be painted during sofware painting (i.e., |
| 127 // not via calls from CompositedLayerMapping to draw into composited layers). | 127 // not via calls from CompositedLayerMapping to draw into composited layers). |
| 128 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, | 128 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, |
| 129 PaintLayerFlags paintFlags); | 129 PaintLayerFlags paintFlags); |
| 130 | 130 |
| 131 // Convert a fragmentOffset from the coordinate system of this painter's |
| 132 // layer to the coordinate system of the layer in which it's border radius |
| 133 // clip rect is defined, for painting composited children using mask layers. |
| 134 LayoutPoint fragmentOffsetForAncestorClipMask(const LayoutPoint&); |
| 135 |
| 131 PaintLayer& m_paintLayer; | 136 PaintLayer& m_paintLayer; |
| 132 }; | 137 }; |
| 133 | 138 |
| 134 } // namespace blink | 139 } // namespace blink |
| 135 | 140 |
| 136 #endif // PaintLayerPainter_h | 141 #endif // PaintLayerPainter_h |
| OLD | NEW |