| OLD | NEW |
| 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 Loading... |
| 33 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect,
PaintBehavior, LayoutObject* paintingRoot = 0); | 33 void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect,
PaintBehavior, 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 paintPaginatedChildLayer(GraphicsContext*, const DeprecatedPaintLayerPa
intingInfo&, PaintLayerFlags); | |
| 44 void paintChildLayerIntoColumns(GraphicsContext*, const DeprecatedPaintLayer
PaintingInfo&, PaintLayerFlags, const Vector<DeprecatedPaintLayer*>& columnLayer
s, size_t columnIndex); | |
| 45 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&,
const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off
setFromRoot); | 43 bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&,
const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& off
setFromRoot); |
| 46 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&,
GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Pai
ntBehavior, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags, ClipStat
e); | 44 void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&,
GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, Pai
ntBehavior, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags, ClipStat
e); |
| 47 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, | 45 void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, |
| 48 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, PaintBehavior, LayoutObject* paintingRootForLayoutObject, PaintLa
yerFlags); | 46 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, PaintBehavior, LayoutObject* paintingRootForLayoutObject, PaintLa
yerFlags); |
| 49 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, | 47 void paintForegroundForFragments(const DeprecatedPaintLayerFragments&, Graph
icsContext*, |
| 50 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, PaintBehavior, LayoutObject* paintingRootForLayoutObject, | 48 const LayoutRect& transparencyPaintDirtyRect, const DeprecatedPaintLayer
PaintingInfo&, PaintBehavior, LayoutObject* paintingRootForLayoutObject, |
| 51 bool selectionOnly, PaintLayerFlags); | 49 bool selectionOnly, PaintLayerFlags); |
| 52 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL
ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Paint
Behavior, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState)
; | 50 void paintForegroundForFragmentsWithPhase(PaintPhase, const DeprecatedPaintL
ayerFragments&, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, Paint
Behavior, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState)
; |
| 53 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics
Context*, const DeprecatedPaintLayerPaintingInfo&, PaintBehavior, LayoutObject*
paintingRootForLayoutObject, PaintLayerFlags); | 51 void paintOutlineForFragments(const DeprecatedPaintLayerFragments&, Graphics
Context*, const DeprecatedPaintLayerPaintingInfo&, PaintBehavior, LayoutObject*
paintingRootForLayoutObject, PaintLayerFlags); |
| 54 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&,
GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); | 52 void paintOverflowControlsForFragments(const DeprecatedPaintLayerFragments&,
GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| 55 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon
text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay
outObject, PaintLayerFlags); | 53 void paintMaskForFragments(const DeprecatedPaintLayerFragments&, GraphicsCon
text*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLay
outObject, PaintLayerFlags); |
| 56 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments&
, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint
ingRootForLayoutObject, PaintLayerFlags); | 54 void paintChildClippingMaskForFragments(const DeprecatedPaintLayerFragments&
, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paint
ingRootForLayoutObject, PaintLayerFlags); |
| 57 | 55 |
| 58 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin
gInfo, const ClipRect&); | 56 static bool needsToClip(const DeprecatedPaintLayerPaintingInfo& localPaintin
gInfo, const ClipRect&); |
| 59 | 57 |
| 60 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi
ted | 58 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedDeprecatedPaintLayerMapping to draw into composi
ted |
| 61 // layers). | 59 // layers). |
| 62 bool shouldPaintLayerInSoftwareMode(const DeprecatedPaintLayerPaintingInfo&,
PaintLayerFlags paintFlags); | 60 bool shouldPaintLayerInSoftwareMode(const DeprecatedPaintLayerPaintingInfo&,
PaintLayerFlags paintFlags); |
| 63 | 61 |
| 64 DeprecatedPaintLayer& m_paintLayer; | 62 DeprecatedPaintLayer& m_paintLayer; |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace blink | 65 } // namespace blink |
| 68 | 66 |
| 69 #endif // DeprecatedPaintLayerPainter_h | 67 #endif // DeprecatedPaintLayerPainter_h |
| OLD | NEW |