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

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

Issue 2080593002: Revert of Let FrameView track object paint invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TrackInvalidation
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void setSquashingContentsNeedDisplay(); 127 void setSquashingContentsNeedDisplay();
128 void setContentsNeedDisplay(); 128 void setContentsNeedDisplay();
129 // LayoutRect is in the coordinate space of the layer's layout object. 129 // LayoutRect is in the coordinate space of the layer's layout object.
130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&); 130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&);
131 // Invalidates just the non-scrolling content layers. 131 // Invalidates just the non-scrolling content layers.
132 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvali dationReason, const DisplayItemClient&); 132 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvali dationReason, const DisplayItemClient&);
133 // Invalidates just scrolling content layers. 133 // Invalidates just scrolling content layers.
134 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat ionReason, const DisplayItemClient&); 134 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat ionReason, const DisplayItemClient&);
135 135
136 // This is called only if we are tracking paint invalidation for testing, or ENABLE(ASSERT)
137 // for error checking and debugging.
138 void displayItemClientWasInvalidated(const DisplayItemClient&, PaintInvalida tionReason);
139 // Invalidates just scrolling content layers.
140 void scrollingDisplayItemClientWasInvalidated(const DisplayItemClient&, Pain tInvalidationReason);
141
136 // Notification from the layoutObject that its content changed. 142 // Notification from the layoutObject that its content changed.
137 void contentChanged(ContentChangeType); 143 void contentChanged(ContentChangeType);
138 144
139 LayoutRect compositedBounds() const { return m_compositedBounds; } 145 LayoutRect compositedBounds() const { return m_compositedBounds; }
140 IntRect pixelSnappedCompositedBounds() const; 146 IntRect pixelSnappedCompositedBounds() const;
141 147
142 void positionOverflowControlsLayers(); 148 void positionOverflowControlsLayers();
143 149
144 // Returns true if the assignment actually changed the assigned squashing la yer. 150 // Returns true if the assignment actually changed the assigned squashing la yer.
145 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq uashedLayerIndex); 151 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq uashedLayerIndex);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 460
455 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 461 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
456 unsigned m_scrollingContentsAreEmpty : 1; 462 unsigned m_scrollingContentsAreEmpty : 1;
457 463
458 friend class CompositedLayerMappingTest; 464 friend class CompositedLayerMappingTest;
459 }; 465 };
460 466
461 } // namespace blink 467 } // namespace blink
462 468
463 #endif // CompositedLayerMapping_h 469 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698