OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 PaintLayerHaveTransparency = 1, | 56 PaintLayerHaveTransparency = 1, |
57 PaintLayerAppliedTransform = 1 << 1, | 57 PaintLayerAppliedTransform = 1 << 1, |
58 // FIXME(sky): This is unused. Remove it. | 58 // FIXME(sky): This is unused. Remove it. |
59 PaintLayerUncachedClipRects = 1 << 2, | 59 PaintLayerUncachedClipRects = 1 << 2, |
60 PaintLayerPaintingOverlayScrollbars = 1 << 4, | 60 PaintLayerPaintingOverlayScrollbars = 1 << 4, |
61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, | 61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, |
62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, | 62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, |
63 PaintLayerPaintingCompositingMaskPhase = 1 << 7, | 63 PaintLayerPaintingCompositingMaskPhase = 1 << 7, |
64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, | 64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, |
65 PaintLayerPaintingOverflowContents = 1 << 9, | 65 PaintLayerPaintingOverflowContents = 1 << 9, |
66 PaintLayerPaintingChildClippingMaskPhase = 1 << 10, | |
67 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) | 66 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) |
68 }; | 67 }; |
69 | 68 |
70 typedef unsigned PaintLayerFlags; | 69 typedef unsigned PaintLayerFlags; |
71 | 70 |
72 struct LayerPaintingInfo { | 71 struct LayerPaintingInfo { |
73 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, | 72 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, |
74 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 73 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, |
75 RenderObject* inPaintingRoot = 0) | 74 RenderObject* inPaintingRoot = 0) |
76 : rootLayer(inRootLayer) | 75 : rootLayer(inRootLayer) |
77 , paintingRoot(inPaintingRoot) | 76 , paintingRoot(inPaintingRoot) |
78 , paintDirtyRect(inDirtyRect) | 77 , paintDirtyRect(inDirtyRect) |
79 , subPixelAccumulation(inSubPixelAccumulation) | 78 , subPixelAccumulation(inSubPixelAccumulation) |
80 , paintBehavior(inPaintBehavior) | 79 , paintBehavior(inPaintBehavior) |
81 , clipToDirtyRect(true) | 80 , clipToDirtyRect(true) |
82 { } | 81 { } |
83 RenderLayer* rootLayer; | 82 RenderLayer* rootLayer; |
84 RenderObject* paintingRoot; // only paint descendants of this object | 83 RenderObject* paintingRoot; // only paint descendants of this object |
85 LayoutRect paintDirtyRect; // relative to rootLayer; | 84 LayoutRect paintDirtyRect; // relative to rootLayer; |
86 LayoutSize subPixelAccumulation; | 85 LayoutSize subPixelAccumulation; |
87 PaintBehavior paintBehavior; | 86 PaintBehavior paintBehavior; |
88 bool clipToDirtyRect; | 87 bool clipToDirtyRect; |
89 }; | 88 }; |
90 | 89 |
91 } // namespace blink | 90 } // namespace blink |
92 | 91 |
93 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ | 92 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ |
OLD | NEW |