| 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 LayerClipRecorder_h | 5 #ifndef LayerClipRecorder_h |
| 6 #define LayerClipRecorder_h | 6 #define LayerClipRecorder_h |
| 7 | 7 |
| 8 #include "core/rendering/LayerPaintingInfo.h" | 8 #include "core/rendering/LayerPaintingInfo.h" |
| 9 #include "core/rendering/PaintPhase.h" | 9 #include "core/rendering/PaintPhase.h" |
| 10 #include "platform/graphics/paint/ClipDisplayItem.h" | 10 #include "platform/graphics/paint/ClipDisplayItem.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // same time we pass a fragmentOffset, so that we can translate from flow th
read coordinates to | 33 // same time we pass a fragmentOffset, so that we can translate from flow th
read coordinates to |
| 34 // visual coordinates. This may look rather confusing/redundant, but it is n
eeded for rounded | 34 // visual coordinates. This may look rather confusing/redundant, but it is n
eeded for rounded |
| 35 // border clipping. Would be nice to clean up this. | 35 // border clipping. Would be nice to clean up this. |
| 36 explicit LayerClipRecorder(const RenderLayerModelObject*, GraphicsContext*,
DisplayItem::Type, const ClipRect&, const LayerPaintingInfo* localPaintingInfo,
const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = I
ncludeSelfForBorderRadius); | 36 explicit LayerClipRecorder(const RenderLayerModelObject*, GraphicsContext*,
DisplayItem::Type, const ClipRect&, const LayerPaintingInfo* localPaintingInfo,
const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = I
ncludeSelfForBorderRadius); |
| 37 | 37 |
| 38 ~LayerClipRecorder(); | 38 ~LayerClipRecorder(); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 | 41 |
| 42 void collectRoundedRectClips(RenderLayer&, const LayerPaintingInfo& localPai
ntingInfo, GraphicsContext*, const LayoutPoint& fragmentOffset, PaintLayerFlags, | 42 void collectRoundedRectClips(RenderLayer&, const LayerPaintingInfo& localPai
ntingInfo, GraphicsContext*, const LayoutPoint& fragmentOffset, PaintLayerFlags, |
| 43 BorderRadiusClippingRule, Vector<RoundedRect>& roundedRectClips); | 43 BorderRadiusClippingRule, Vector<FloatRoundedRect>& roundedRectClips); |
| 44 | 44 |
| 45 GraphicsContext* m_graphicsContext; | 45 GraphicsContext* m_graphicsContext; |
| 46 const RenderLayerModelObject* m_renderer; | 46 const RenderLayerModelObject* m_renderer; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| 50 | 50 |
| 51 #endif // LayerDisplayList_h | 51 #endif // LayerDisplayList_h |
| OLD | NEW |