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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.h

Issue 208643002: CompositedLayerMapping should use dirty bits for bounds update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void setContentsNeedDisplay(); 154 void setContentsNeedDisplay();
155 // r is in the coordinate space of the layer's render object 155 // r is in the coordinate space of the layer's render object
156 void setContentsNeedDisplayInRect(const IntRect&); 156 void setContentsNeedDisplayInRect(const IntRect&);
157 157
158 // Notification from the renderer that its content changed. 158 // Notification from the renderer that its content changed.
159 void contentChanged(ContentChangeType); 159 void contentChanged(ContentChangeType);
160 160
161 LayoutRect compositedBounds() const { return m_compositedBounds; } 161 LayoutRect compositedBounds() const { return m_compositedBounds; }
162 IntRect pixelSnappedCompositedBounds() const; 162 IntRect pixelSnappedCompositedBounds() const;
163 void setCompositedBounds(const LayoutRect&); 163 void setCompositedBounds(const LayoutRect&);
164 void updateCompositedBounds(); 164 void updateCompositedBounds(GraphicsLayerUpdater::UpdateType);
165 165
166 void updateAfterWidgetResize(); 166 void updateAfterWidgetResize();
167 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); 167 void positionOverflowControlsLayers(const IntSize& offsetFromRoot);
168 bool hasUnpositionedOverflowControlsLayers() const; 168 bool hasUnpositionedOverflowControlsLayers() const;
169 169
170 // Returns true if the assignment actually changed the assigned squashing la yer. 170 // Returns true if the assignment actually changed the assigned squashing la yer.
171 bool updateSquashingLayerAssignment(RenderLayer*, LayoutSize offsetFromSquas hingCLM, size_t nextSquashedLayerIndex); 171 bool updateSquashingLayerAssignment(RenderLayer*, LayoutSize offsetFromSquas hingCLM, size_t nextSquashedLayerIndex);
172 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); 172 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*);
173 173
174 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); 174 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 bool m_requiresOwnBackingStoreForAncestorReasons : 1; 362 bool m_requiresOwnBackingStoreForAncestorReasons : 1;
363 bool m_canCompositeFilters : 1; 363 bool m_canCompositeFilters : 1;
364 bool m_backgroundLayerPaintsFixedRootBackground : 1; 364 bool m_backgroundLayerPaintsFixedRootBackground : 1;
365 bool m_needToUpdateGeometry : 1; 365 bool m_needToUpdateGeometry : 1;
366 bool m_needToUpdateGeometryOfAllDecendants : 1; 366 bool m_needToUpdateGeometryOfAllDecendants : 1;
367 }; 367 };
368 368
369 } // namespace WebCore 369 } // namespace WebCore
370 370
371 #endif // CompositedLayerMapping_h 371 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698