| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "core/paint/PaintLayerPaintingInfo.h" | 31 #include "core/paint/PaintLayerPaintingInfo.h" |
| 32 #include "platform/geometry/FloatPoint.h" | 32 #include "platform/geometry/FloatPoint.h" |
| 33 #include "platform/geometry/FloatPoint3D.h" | 33 #include "platform/geometry/FloatPoint3D.h" |
| 34 #include "platform/graphics/GraphicsLayer.h" | 34 #include "platform/graphics/GraphicsLayer.h" |
| 35 #include "platform/graphics/GraphicsLayerClient.h" | 35 #include "platform/graphics/GraphicsLayerClient.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
| 37 #include <memory> | 37 #include <memory> |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class InvalidationDebugging; |
| 41 class PaintLayerCompositor; | 42 class PaintLayerCompositor; |
| 42 | 43 |
| 43 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial | 44 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial |
| 44 // subtree of Layers into a GraphicsLayer. | 45 // subtree of Layers into a GraphicsLayer. |
| 45 struct GraphicsLayerPaintInfo { | 46 struct GraphicsLayerPaintInfo { |
| 46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 47 PaintLayer* paintLayer; | 48 PaintLayer* paintLayer; |
| 48 | 49 |
| 49 LayoutRect compositedBounds; | 50 LayoutRect compositedBounds; |
| 50 | 51 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 GraphicsLayer* squashingContainmentLayer() const { | 162 GraphicsLayer* squashingContainmentLayer() const { |
| 162 return m_squashingContainmentLayer.get(); | 163 return m_squashingContainmentLayer.get(); |
| 163 } | 164 } |
| 164 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } | 165 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } |
| 165 | 166 |
| 166 void setSquashingContentsNeedDisplay(); | 167 void setSquashingContentsNeedDisplay(); |
| 167 void setContentsNeedDisplay(); | 168 void setContentsNeedDisplay(); |
| 168 // LayoutRect is in the coordinate space of the layer's layout object. | 169 // LayoutRect is in the coordinate space of the layer's layout object. |
| 169 void setContentsNeedDisplayInRect(const LayoutRect&, | 170 void setContentsNeedDisplayInRect(const LayoutRect&, |
| 170 PaintInvalidationReason, | 171 PaintInvalidationReason, |
| 171 const DisplayItemClient&); | 172 const InvalidationDebugging&); |
| 172 // Invalidates just the non-scrolling content layers. | 173 // Invalidates just the non-scrolling content layers. |
| 173 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, | 174 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, |
| 174 PaintInvalidationReason, | 175 PaintInvalidationReason, |
| 175 const DisplayItemClient&); | 176 const InvalidationDebugging&); |
| 176 // Invalidates just scrolling content layers. | 177 // Invalidates just scrolling content layers. |
| 177 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, | 178 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, |
| 178 PaintInvalidationReason, | 179 PaintInvalidationReason, |
| 179 const DisplayItemClient&); | 180 const InvalidationDebugging&); |
| 180 | 181 |
| 181 // Notification from the layoutObject that its content changed. | 182 // Notification from the layoutObject that its content changed. |
| 182 void contentChanged(ContentChangeType); | 183 void contentChanged(ContentChangeType); |
| 183 | 184 |
| 184 LayoutRect compositedBounds() const { return m_compositedBounds; } | 185 LayoutRect compositedBounds() const { return m_compositedBounds; } |
| 185 IntRect pixelSnappedCompositedBounds() const; | 186 IntRect pixelSnappedCompositedBounds() const; |
| 186 | 187 |
| 187 void positionOverflowControlsLayers(); | 188 void positionOverflowControlsLayers(); |
| 188 | 189 |
| 189 // Returns true if the assignment actually changed the assigned squashing | 190 // Returns true if the assignment actually changed the assigned squashing |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 // layer and the graphics layer because the scrolling contents layer is | 696 // layer and the graphics layer because the scrolling contents layer is |
| 696 // clipped by the padding box. | 697 // clipped by the padding box. |
| 697 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; | 698 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; |
| 698 | 699 |
| 699 friend class CompositedLayerMappingTest; | 700 friend class CompositedLayerMappingTest; |
| 700 }; | 701 }; |
| 701 | 702 |
| 702 } // namespace blink | 703 } // namespace blink |
| 703 | 704 |
| 704 #endif // CompositedLayerMapping_h | 705 #endif // CompositedLayerMapping_h |
| OLD | NEW |