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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 PaintLayerFlags, | 49 PaintLayerFlags, |
50 FragmentPolicy = AllowMultipleFragments); | 50 FragmentPolicy = AllowMultipleFragments); |
51 | 51 |
52 void paintOverlayScrollbars(GraphicsContext&, | 52 void paintOverlayScrollbars(GraphicsContext&, |
53 const LayoutRect& damageRect, | 53 const LayoutRect& damageRect, |
54 const GlobalPaintFlags); | 54 const GlobalPaintFlags); |
55 | 55 |
56 private: | 56 private: |
57 enum ClipState { HasNotClipped, HasClipped }; | 57 enum ClipState { HasNotClipped, HasClipped }; |
58 | 58 |
59 bool collectPaintFragmentsForPaginatedFixedPosition( | 59 inline bool isFixedPositionObjectInPagedMedia(); |
60 const PaintLayerPaintingInfo&, | 60 void repeatFixedPositionObjectInPages(const PaintLayerFragment&, |
chrishtr
2017/01/03 20:13:38
Add a brief comment explaining the parameters and
Xianzhu
2017/01/03 20:19:20
Done.
| |
61 PaintLayerFragments&); | 61 const PaintLayerPaintingInfo&, |
62 PaintLayerFragments&); | |
62 | 63 |
63 PaintResult paintLayerContentsCompositingAllPhases( | 64 PaintResult paintLayerContentsCompositingAllPhases( |
64 GraphicsContext&, | 65 GraphicsContext&, |
65 const PaintLayerPaintingInfo&, | 66 const PaintLayerPaintingInfo&, |
66 PaintLayerFlags, | 67 PaintLayerFlags, |
67 FragmentPolicy = AllowMultipleFragments); | 68 FragmentPolicy = AllowMultipleFragments); |
68 PaintResult paintLayerWithTransform(GraphicsContext&, | 69 PaintResult paintLayerWithTransform(GraphicsContext&, |
69 const PaintLayerPaintingInfo&, | 70 const PaintLayerPaintingInfo&, |
70 PaintLayerFlags); | 71 PaintLayerFlags); |
71 PaintResult paintFragmentByApplyingTransform( | 72 PaintResult paintFragmentByApplyingTransform( |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, | 143 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, |
143 DontPaintWithTinyOpacityAndBackdropFilter); | 144 DontPaintWithTinyOpacityAndBackdropFilter); |
144 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, | 145 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, |
145 DoPaintWithCompositedTinyOpacity); | 146 DoPaintWithCompositedTinyOpacity); |
146 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DoPaintWithNonTinyOpacity); | 147 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DoPaintWithNonTinyOpacity); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace blink | 150 } // namespace blink |
150 | 151 |
151 #endif // PaintLayerPainter_h | 152 #endif // PaintLayerPainter_h |
OLD | NEW |