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

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: Fix failing test. Update test expectation. 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 24 matching lines...) Expand all
35 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags, LayoutObject* paintingRoot = 0); 35 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags, LayoutObject* paintingRoot = 0);
36 36
37 private: 37 private:
38 enum ClipState { HasNotClipped, HasClipped }; 38 enum ClipState { HasNotClipped, HasClipped };
39 39
40 void paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaint LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); 40 void paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaint LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments);
41 void paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPai ntingInfo&, PaintLayerFlags); 41 void paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPai ntingInfo&, PaintLayerFlags);
42 void paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPain tLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation); 42 void paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPain tLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation);
43 43
44 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const Depreca tedPaintLayerPaintingInfo&, PaintLayerFlags); 44 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const Depreca tedPaintLayerPaintingInfo&, PaintLayerFlags);
45 void paintChildrenWithFullScrollClipChain(unsigned childrenToVisit, Graphics Context*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags);
45 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off setFromRoot); 46 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off setFromRoot);
46 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&, GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); 47 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&, GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState);
47 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*, 48 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*,
48 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags); 49 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags);
49 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*, 50 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*,
50 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, 51 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject,
51 bool selectionOnly, PaintLayerFlags); 52 bool selectionOnly, PaintLayerFlags);
52 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); 53 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState);
53 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor LayoutObject, PaintLayerFlags); 54 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor LayoutObject, PaintLayerFlags);
54 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); 55 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags);
55 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay outObject, PaintLayerFlags); 56 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay outObject, PaintLayerFlags);
56 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments& , GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint ingRootForLayoutObject, PaintLayerFlags); 57 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments& , GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint ingRootForLayoutObject, PaintLayerFlags);
57 58
58 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin gInfo, const ClipRect&); 59 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin gInfo, const ClipRect&);
59 60
60 // Returns whether this layer should be painted during sofware painting (i.e ., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi ted 61 // Returns whether this layer should be painted during sofware painting (i.e ., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi ted
61 // layers). 62 // layers).
62 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags paintFlags); 63 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags paintFlags);
63 64
64 DeprecatedPaintLayer& m_paintLayer; 65 DeprecatedPaintLayer& m_paintLayer;
65 }; 66 };
66 67
67 } // namespace blink 68 } // namespace blink
68 69
69 #endif // DeprecatedPaintLayerPainter_h 70 #endif // DeprecatedPaintLayerPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698