Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerPainter.h

Issue 1284203004: Generate scroll/clip display item hierarchy for SPv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: stripped localPaintingInfo cleanup and fixed-pos workarounds Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698