Index: third_party/WebKit/Source/core/paint/BoxPainterBase.h |
diff --git a/third_party/WebKit/Source/core/paint/BoxPainterBase.h b/third_party/WebKit/Source/core/paint/BoxPainterBase.h |
index 0f500530bc7f7aec4bd069ccf73e27f62b13bbfc..22e49fc5b03c91664c0c73c952c7bc50bd10a3d5 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPainterBase.h |
+++ b/third_party/WebKit/Source/core/paint/BoxPainterBase.h |
@@ -16,6 +16,7 @@ class Document; |
class FloatRoundedRect; |
class LayoutPoint; |
class LayoutRect; |
+class FillLayer; |
struct PaintInfo; |
// Base class for box painting. Has no dependencies on the layout tree and thus |
@@ -56,6 +57,17 @@ class BoxPainterBase { |
LayoutRect BoundsForDrawingRecorder(const PaintInfo&, |
const LayoutPoint& adjusted_paint_offset); |
+ |
+ typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; |
+ // Returns true if the result fill layers have non-associative blending or |
+ // compositing mode. (i.e. The rendering will be different without creating |
+ // isolation group by context.saveLayer().) Note that the output list will be |
+ // in top-bottom order. |
+ bool CalculateFillLayerOcclusionCulling( |
+ FillLayerOcclusionOutputList& reversed_paint_list, |
+ const FillLayer&, |
+ const Document&, |
+ const ComputedStyle&); |
}; |
} // namespace blink |