| 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 LayerPainter_h | 5 #ifndef LayerPainter_h |
| 6 #define LayerPainter_h | 6 #define LayerPainter_h |
| 7 | 7 |
| 8 #include "core/paint/ClipRecorder.h" | 8 #include "core/paint/ClipRecorder.h" |
| 9 #include "core/rendering/LayerFragment.h" | 9 #include "core/rendering/LayerFragment.h" |
| 10 #include "core/rendering/LayerPaintingInfo.h" | 10 #include "core/rendering/LayerPaintingInfo.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, | 54 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, |
| 55 const LayoutRect& transparencyPaintDirtyRect, const LayerPaintingInfo&,
PaintBehavior, RenderObject* paintingRootForRenderer, PaintLayerFlags); | 55 const LayoutRect& transparencyPaintDirtyRect, const LayerPaintingInfo&,
PaintBehavior, RenderObject* paintingRootForRenderer, PaintLayerFlags); |
| 56 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, | 56 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, |
| 57 const LayoutRect& transparencyPaintDirtyRect, const LayerPaintingInfo&,
PaintBehavior, RenderObject* paintingRootForRenderer, | 57 const LayoutRect& transparencyPaintDirtyRect, const LayerPaintingInfo&,
PaintBehavior, RenderObject* paintingRootForRenderer, |
| 58 bool selectionOnly, PaintLayerFlags); | 58 bool selectionOnly, PaintLayerFlags); |
| 59 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&,
GraphicsContext*, const LayerPaintingInfo&, PaintBehavior, RenderObject* painti
ngRootForRenderer, PaintLayerFlags, ClipState); | 59 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&,
GraphicsContext*, const LayerPaintingInfo&, PaintBehavior, RenderObject* painti
ngRootForRenderer, PaintLayerFlags, ClipState); |
| 60 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const
LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer, Paint
LayerFlags); | 60 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const
LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer, Paint
LayerFlags); |
| 61 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex
t*, const LayerPaintingInfo&, PaintLayerFlags); | 61 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex
t*, const LayerPaintingInfo&, PaintLayerFlags); |
| 62 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayerFlags); | 62 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayerFlags); |
| 63 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); | 63 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); |
| 64 void paintTransformedLayerIntoFragments(GraphicsContext*, const LayerPaintin
gInfo&, PaintLayerFlags); | |
| 65 | 64 |
| 66 static bool needsToClip(const LayerPaintingInfo& localPaintingInfo, const Cl
ipRect&); | 65 static bool needsToClip(const LayerPaintingInfo& localPaintingInfo, const Cl
ipRect&); |
| 67 | 66 |
| 68 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedLayerMapping to draw into composited | 67 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedLayerMapping to draw into composited |
| 69 // layers). | 68 // layers). |
| 70 bool shouldPaintLayerInSoftwareMode(const LayerPaintingInfo&, PaintLayerFlag
s paintFlags); | 69 bool shouldPaintLayerInSoftwareMode(const LayerPaintingInfo&, PaintLayerFlag
s paintFlags); |
| 71 | 70 |
| 72 RenderLayer& m_renderLayer; | 71 RenderLayer& m_renderLayer; |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace blink | 74 } // namespace blink |
| 76 | 75 |
| 77 #endif // LayerPainter_h | 76 #endif // LayerPainter_h |
| OLD | NEW |