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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2033513003: (NOT FOR COMMIT) Testing layer invalidation speedups. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void setSublayers(const GraphicsLayerVector&); 119 void setSublayers(const GraphicsLayerVector&);
120 120
121 bool hasChildTransformLayer() const { return m_childTransformLayer.get(); } 121 bool hasChildTransformLayer() const { return m_childTransformLayer.get(); }
122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); } 122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); }
123 123
124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); } 124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); }
125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } 125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); }
126 126
127 void setSquashingContentsNeedDisplay(); 127 void setSquashingContentsNeedDisplay();
128 void setContentsNeedDisplay(); 128 void setContentsNeedDisplay();
129
129 // LayoutRect is in the coordinate space of the layer's layout object. 130 // LayoutRect is in the coordinate space of the layer's layout object.
130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&); 131 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&);
132 void finalizeInvalidations();
131 133
132 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation Reason); 134 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation Reason);
133 135
134 // Notification from the layoutObject that its content changed. 136 // Notification from the layoutObject that its content changed.
135 void contentChanged(ContentChangeType); 137 void contentChanged(ContentChangeType);
136 138
137 LayoutRect compositedBounds() const { return m_compositedBounds; } 139 LayoutRect compositedBounds() const { return m_compositedBounds; }
138 IntRect pixelSnappedCompositedBounds() const; 140 IntRect pixelSnappedCompositedBounds() const;
139 141
140 void positionOverflowControlsLayers(); 142 void positionOverflowControlsLayers();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // + m_graphicsLayer 430 // + m_graphicsLayer
429 // + m_squashingLayer 431 // + m_squashingLayer
430 // 432 //
431 // Stacking children of a squashed layer receive graphics layers that are pa rented to the compositd ancestor of the 433 // Stacking children of a squashed layer receive graphics layers that are pa rented to the compositd ancestor of the
432 // squashed layer (i.e. nearest enclosing composited layer that is not squas hed). 434 // squashed layer (i.e. nearest enclosing composited layer that is not squas hed).
433 OwnPtr<GraphicsLayer> m_squashingContainmentLayer; // Only used if any squas hed layers exist and m_squashingContainmentLayer is not present, to contain the squashed layers as siblings to the rest of the GraphicsLayer tree chunk. 435 OwnPtr<GraphicsLayer> m_squashingContainmentLayer; // Only used if any squas hed layers exist and m_squashingContainmentLayer is not present, to contain the squashed layers as siblings to the rest of the GraphicsLayer tree chunk.
434 OwnPtr<GraphicsLayer> m_squashingLayer; // Only used if any squashed layers exist, this is the backing that squashed layers paint into. 436 OwnPtr<GraphicsLayer> m_squashingLayer; // Only used if any squashed layers exist, this is the backing that squashed layers paint into.
435 Vector<GraphicsLayerPaintInfo> m_squashedLayers; 437 Vector<GraphicsLayerPaintInfo> m_squashedLayers;
436 LayoutPoint m_squashingLayerOffsetFromTransformedAncestor; 438 LayoutPoint m_squashingLayerOffsetFromTransformedAncestor;
437 439
440 Vector<NeedsDisplayRecord> m_needsDisplayInRects;
441
438 LayoutRect m_compositedBounds; 442 LayoutRect m_compositedBounds;
439 443
440 LayoutSize m_contentOffsetInCompositingLayer; 444 LayoutSize m_contentOffsetInCompositingLayer;
441 unsigned m_contentOffsetInCompositingLayerDirty : 1; 445 unsigned m_contentOffsetInCompositingLayerDirty : 1;
442 446
443 unsigned m_pendingUpdateScope : 2; 447 unsigned m_pendingUpdateScope : 2;
444 unsigned m_isMainFrameLayoutViewLayer : 1; 448 unsigned m_isMainFrameLayoutViewLayer : 1;
445 449
446 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 450 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
447 unsigned m_scrollingContentsAreEmpty : 1; 451 unsigned m_scrollingContentsAreEmpty : 1;
448 452
449 friend class CompositedLayerMappingTest; 453 friend class CompositedLayerMappingTest;
450 }; 454 };
451 455
452 } // namespace blink 456 } // namespace blink
453 457
454 #endif // CompositedLayerMapping_h 458 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698