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 DeprecatedPaintLayerPainter_h | 5 #ifndef DeprecatedPaintLayerPainter_h |
6 #define DeprecatedPaintLayerPainter_h | 6 #define DeprecatedPaintLayerPainter_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/paint/DeprecatedPaintLayerFragment.h" | 9 #include "core/paint/DeprecatedPaintLayerFragment.h" |
10 #include "core/paint/DeprecatedPaintLayerPaintingInfo.h" | 10 #include "core/paint/DeprecatedPaintLayerPaintingInfo.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 private: | 46 private: |
47 enum ClipState { HasNotClipped, HasClipped }; | 47 enum ClipState { HasNotClipped, HasClipped }; |
48 | 48 |
49 PaintResult paintLayerInternal(GraphicsContext*, const DeprecatedPaintLayerP
aintingInfo&, PaintLayerFlags); | 49 PaintResult paintLayerInternal(GraphicsContext*, const DeprecatedPaintLayerP
aintingInfo&, PaintLayerFlags); |
50 PaintResult paintLayerContentsAndReflection(GraphicsContext*, const Deprecat
edPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragme
nts); | 50 PaintResult paintLayerContentsAndReflection(GraphicsContext*, const Deprecat
edPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragme
nts); |
51 PaintResult paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintL
ayerPaintingInfo&, PaintLayerFlags); | 51 PaintResult paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintL
ayerPaintingInfo&, PaintLayerFlags); |
52 PaintResult paintFragmentByApplyingTransform(GraphicsContext*, const Depreca
tedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslat
ion); | 52 PaintResult paintFragmentByApplyingTransform(GraphicsContext*, const Depreca
tedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslat
ion); |
53 | 53 |
54 PaintResult paintChildren(unsigned childrenToVisit, GraphicsContext*, const
DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); | 54 PaintResult paintChildren(unsigned childrenToVisit, GraphicsContext*, const
DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| 55 PaintResult paintChildrenWithFullScrollClipChain(unsigned childrenToVisit, G
raphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
55 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&,
const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off
setFromRoot); | 56 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&,
const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off
setFromRoot); |
56 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&,
GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay
outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); | 57 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&,
GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay
outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); |
57 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, | 58 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, |
58 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags); | 59 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags); |
59 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, | 60 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, |
60 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, LayoutObject* paintingRootForLayoutObject, | 61 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, LayoutObject* paintingRootForLayoutObject, |
61 bool selectionOnly, PaintLayerFlags); | 62 bool selectionOnly, PaintLayerFlags); |
62 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL
ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou
tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); | 63 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL
ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou
tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); |
63 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics
Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor
LayoutObject, PaintLayerFlags); | 64 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics
Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor
LayoutObject, PaintLayerFlags); |
64 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&,
GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); | 65 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&,
GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
65 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon
text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay
outObject, PaintLayerFlags); | 66 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon
text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay
outObject, PaintLayerFlags); |
66 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments&
, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint
ingRootForLayoutObject, PaintLayerFlags); | 67 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments&
, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint
ingRootForLayoutObject, PaintLayerFlags); |
67 | 68 |
68 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin
gInfo, const ClipRect&); | 69 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin
gInfo, const ClipRect&); |
69 | 70 |
70 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi
ted | 71 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi
ted |
71 // layers). | 72 // layers). |
72 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags
paintFlags); | 73 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags
paintFlags); |
73 | 74 |
74 DeprecatedPaintLayer& m_paintLayer; | 75 DeprecatedPaintLayer& m_paintLayer; |
75 }; | 76 }; |
76 | 77 |
77 } // namespace blink | 78 } // namespace blink |
78 | 79 |
79 #endif // DeprecatedPaintLayerPainter_h | 80 #endif // DeprecatedPaintLayerPainter_h |
OLD | NEW |