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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #ifndef DeprecatedPaintLayerPaintingInfo_h | 45 #ifndef DeprecatedPaintLayerPaintingInfo_h |
46 #define DeprecatedPaintLayerPaintingInfo_h | 46 #define DeprecatedPaintLayerPaintingInfo_h |
47 | 47 |
48 #include "core/paint/PaintPhase.h" | 48 #include "core/paint/PaintPhase.h" |
49 #include "platform/geometry/LayoutRect.h" | 49 #include "platform/geometry/LayoutRect.h" |
50 | 50 |
51 namespace blink { | 51 namespace blink { |
52 | 52 |
53 class DeprecatedPaintLayer; | 53 class DeprecatedPaintLayer; |
54 class LayoutObject; | 54 class LayoutObject; |
| 55 class PaintDataCache; |
55 | 56 |
56 enum PaintLayerFlag { | 57 enum PaintLayerFlag { |
57 PaintLayerHaveTransparency = 1, | 58 PaintLayerHaveTransparency = 1, |
58 PaintLayerAppliedTransform = 1 << 1, | 59 PaintLayerAppliedTransform = 1 << 1, |
59 PaintLayerUncachedClipRects = 1 << 2, | 60 PaintLayerUncachedClipRects = 1 << 2, |
60 PaintLayerPaintingReflection = 1 << 3, | 61 PaintLayerPaintingReflection = 1 << 3, |
61 PaintLayerPaintingOverlayScrollbars = 1 << 4, | 62 PaintLayerPaintingOverlayScrollbars = 1 << 4, |
62 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, | 63 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, |
63 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, | 64 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, |
64 PaintLayerPaintingCompositingMaskPhase = 1 << 7, | 65 PaintLayerPaintingCompositingMaskPhase = 1 << 7, |
65 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, | 66 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, |
66 PaintLayerPaintingOverflowContents = 1 << 9, | 67 PaintLayerPaintingOverflowContents = 1 << 9, |
67 PaintLayerPaintingRootBackgroundOnly = 1 << 10, | 68 PaintLayerPaintingRootBackgroundOnly = 1 << 10, |
68 PaintLayerPaintingSkipRootBackground = 1 << 11, | 69 PaintLayerPaintingSkipRootBackground = 1 << 11, |
69 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, | 70 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, |
70 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) | 71 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) |
71 }; | 72 }; |
72 | 73 |
73 typedef unsigned PaintLayerFlags; | 74 typedef unsigned PaintLayerFlags; |
74 | 75 |
75 struct DeprecatedPaintLayerPaintingInfo { | 76 struct DeprecatedPaintLayerPaintingInfo { |
76 DeprecatedPaintLayerPaintingInfo(DeprecatedPaintLayer* inRootLayer, const La
youtRect& inDirtyRect, | 77 DeprecatedPaintLayerPaintingInfo(DeprecatedPaintLayer* inRootLayer, const La
youtRect& inDirtyRect, |
77 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 78 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, |
78 LayoutObject* inPaintingRoot = 0) | 79 LayoutObject* inPaintingRoot = 0, PaintDataCache* inPaintDataCache = nul
lptr) |
79 : rootLayer(inRootLayer) | 80 : rootLayer(inRootLayer) |
80 , paintingRoot(inPaintingRoot) | 81 , paintingRoot(inPaintingRoot) |
81 , paintDirtyRect(inDirtyRect) | 82 , paintDirtyRect(inDirtyRect) |
82 , subPixelAccumulation(inSubPixelAccumulation) | 83 , subPixelAccumulation(inSubPixelAccumulation) |
83 , paintBehavior(inPaintBehavior) | 84 , paintBehavior(inPaintBehavior) |
84 , clipToDirtyRect(true) | 85 , clipToDirtyRect(true) |
| 86 , paintDataCache(inPaintDataCache) |
85 { } | 87 { } |
86 DeprecatedPaintLayer* rootLayer; | 88 DeprecatedPaintLayer* rootLayer; |
87 LayoutObject* paintingRoot; // only paint descendants of this object | 89 LayoutObject* paintingRoot; // only paint descendants of this object |
88 LayoutRect paintDirtyRect; // relative to rootLayer; | 90 LayoutRect paintDirtyRect; // relative to rootLayer; |
89 LayoutSize subPixelAccumulation; | 91 LayoutSize subPixelAccumulation; |
90 IntSize scrollOffsetAccumulation; | 92 IntSize scrollOffsetAccumulation; |
91 PaintBehavior paintBehavior; | 93 PaintBehavior paintBehavior; |
92 bool clipToDirtyRect; | 94 bool clipToDirtyRect; |
| 95 PaintDataCache* paintDataCache; |
93 }; | 96 }; |
94 | 97 |
95 } // namespace blink | 98 } // namespace blink |
96 | 99 |
97 #endif // DeprecatedPaintLayerPaintingInfo_h | 100 #endif // DeprecatedPaintLayerPaintingInfo_h |
OLD | NEW |