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

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: still long way to go 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 22 matching lines...) Expand all
33 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags, LayoutObject* paintingRoot = 0); 33 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags, LayoutObject* paintingRoot = 0);
34 34
35 private: 35 private:
36 enum ClipState { HasNotClipped, HasClipped }; 36 enum ClipState { HasNotClipped, HasClipped };
37 37
38 void paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaint LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); 38 void paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaint LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments);
39 void paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPai ntingInfo&, PaintLayerFlags); 39 void paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPai ntingInfo&, PaintLayerFlags);
40 void paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPain tLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation); 40 void paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPain tLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation);
41 41
42 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const Depreca tedPaintLayerPaintingInfo&, PaintLayerFlags); 42 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const Depreca tedPaintLayerPaintingInfo&, PaintLayerFlags);
43 void paintChildrenV2(unsigned childrenToVisit, GraphicsContext*, const Depre catedPaintLayerPaintingInfo&, PaintLayerFlags);
pdr. 2015/08/25 20:47:55 Can you add a comment describing what's going on?
trchen 2015/08/26 07:39:04 Acknowledged. Will come up with a descriptive name
43 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off setFromRoot); 44 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off setFromRoot);
44 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&, GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); 45 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&, GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Lay outObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState);
45 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*, 46 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*,
46 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags); 47 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags);
47 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*, 48 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph icsContext*,
48 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject, 49 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer PaintingInfo&, LayoutObject* paintingRootForLayoutObject,
49 bool selectionOnly, PaintLayerFlags); 50 bool selectionOnly, PaintLayerFlags);
50 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); 51 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Layou tObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState);
51 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor LayoutObject, PaintLayerFlags); 52 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics Context*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootFor LayoutObject, PaintLayerFlags);
52 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); 53 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags);
53 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay outObject, PaintLayerFlags); 54 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay outObject, PaintLayerFlags);
54 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments& , GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint ingRootForLayoutObject, PaintLayerFlags); 55 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments& , GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint ingRootForLayoutObject, PaintLayerFlags);
55 56
56 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin gInfo, const ClipRect&); 57 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin gInfo, const ClipRect&);
57 58
58 // Returns whether this layer should be painted during sofware painting (i.e ., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi ted 59 // Returns whether this layer should be painted during sofware painting (i.e ., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi ted
59 // layers). 60 // layers).
60 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags paintFlags); 61 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, PaintLayerFlags paintFlags);
61 62
62 DeprecatedPaintLayer& m_paintLayer; 63 DeprecatedPaintLayer& m_paintLayer;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif // DeprecatedPaintLayerPainter_h 68 #endif // DeprecatedPaintLayerPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698