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 paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayerFlags); | 54 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayerFlags); |
55 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); | 55 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); |
56 void paintTransformedLayerIntoFragments(GraphicsContext*, const LayerPaintin
gInfo&, PaintLayerFlags); | 56 void paintTransformedLayerIntoFragments(GraphicsContext*, const LayerPaintin
gInfo&, PaintLayerFlags); |
57 void beginTransparencyLayers(GraphicsContext*, const RenderLayer* rootLayer,
const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, Paint
Behavior); | 57 void beginTransparencyLayers(GraphicsContext*, const RenderLayer* rootLayer,
const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, Paint
Behavior); |
58 | 58 |
59 static bool needsToClip(const LayerPaintingInfo& localPaintingInfo, const Cl
ipRect&); | 59 static bool needsToClip(const LayerPaintingInfo& localPaintingInfo, const Cl
ipRect&); |
60 | 60 |
61 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedLayerMapping to draw into composited | 61 // Returns whether this layer should be painted during sofware painting (i.e
., not via calls from CompositedLayerMapping to draw into composited |
62 // layers). | 62 // layers). |
63 bool shouldPaintLayerInSoftwareMode(const LayerPaintingInfo&, PaintLayerFlag
s paintFlags); | 63 bool shouldPaintLayerInSoftwareMode(const LayerPaintingInfo&, PaintLayerFlag
s paintFlags); |
64 bool shouldCreateTransparencyLayerForBlendMode(); | |
65 | 64 |
66 RenderLayer& m_renderLayer; | 65 RenderLayer& m_renderLayer; |
67 }; | 66 }; |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
70 | 69 |
71 #endif // LayerPainter_h | 70 #endif // LayerPainter_h |
OLD | NEW |