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

Unified Diff: Source/core/paint/LayerPainter.h

Issue 801053005: [New Multicolumn] Render transformed layers into multiple fragments. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/LayerPainter.h
diff --git a/Source/core/paint/LayerPainter.h b/Source/core/paint/LayerPainter.h
index 495c6dc5f871ef3742b85a4903c0dceccd2dbc16..82412b3d15a3536dcb43ec87be082fb438c656bf 100644
--- a/Source/core/paint/LayerPainter.h
+++ b/Source/core/paint/LayerPainter.h
@@ -16,6 +16,8 @@ class RenderLayer;
class LayerPainter {
public:
+ enum FragmentPolicy { AllowMultipleFragments, ForceSingleFragment };
+
LayerPainter(RenderLayer& renderLayer) : m_renderLayer(renderLayer) { }
// The paint() method paints the layers that intersect the damage rect from back to front.
@@ -24,14 +26,14 @@ public:
// paintLayer() assumes that the caller will clip to the bounds of the painting dirty if necessary.
void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
// paintLayerContents() assumes that the caller will clip to the bounds of the painting dirty rect if necessary.
- void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
+ void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments);
void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, PaintBehavior, RenderObject* paintingRoot = 0);
private:
enum ClipState { HasNotClipped, HasClipped };
- void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
+ void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments);
void paintLayerWithTransform(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags);
void paintFragmentByApplyingTransform(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation);

Powered by Google App Engine
This is Rietveld 408576698