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

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

Issue 1588543004: Remove paintInvalidationRect from display item client invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); } 117 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); }
118 118
119 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); } 119 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); }
120 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } 120 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); }
121 121
122 void setSquashingContentsNeedDisplay(); 122 void setSquashingContentsNeedDisplay();
123 void setContentsNeedDisplay(); 123 void setContentsNeedDisplay();
124 // LayoutRect is in the coordinate space of the layer's layout object. 124 // LayoutRect is in the coordinate space of the layer's layout object.
125 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason ); 125 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason );
126 126
127 // If |visualRect| is not nullptr, it contains all pixels that might be pain ted by the display item client, 127 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation Reason);
128 // in coordinate space of the layer's layout object.
129 // |visualRect| can be nullptr if we know it's unchanged and PaintController has cached the previous value.
130 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation Reason, const LayoutRect* visualRect);
131 128
132 // Notification from the layoutObject that its content changed. 129 // Notification from the layoutObject that its content changed.
133 void contentChanged(ContentChangeType); 130 void contentChanged(ContentChangeType);
134 131
135 LayoutRect compositedBounds() const { return m_compositedBounds; } 132 LayoutRect compositedBounds() const { return m_compositedBounds; }
136 IntRect pixelSnappedCompositedBounds() const; 133 IntRect pixelSnappedCompositedBounds() const;
137 134
138 void positionOverflowControlsLayers(); 135 void positionOverflowControlsLayers();
139 136
140 // Returns true if the assignment actually changed the assigned squashing la yer. 137 // Returns true if the assignment actually changed the assigned squashing la yer.
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 437
441 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 438 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
442 unsigned m_scrollingContentsAreEmpty : 1; 439 unsigned m_scrollingContentsAreEmpty : 1;
443 440
444 friend class CompositedLayerMappingTest; 441 friend class CompositedLayerMappingTest;
445 }; 442 };
446 443
447 } // namespace blink 444 } // namespace blink
448 445
449 #endif // CompositedLayerMapping_h 446 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698