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

Unified Diff: Source/core/rendering/compositing/CompositingLayerAssigner.h

Issue 311813005: Issue repaints for RenderLayers that get new composited backings after (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/compositing/CompositingLayerAssigner.h
diff --git a/Source/core/rendering/compositing/CompositingLayerAssigner.h b/Source/core/rendering/compositing/CompositingLayerAssigner.h
index f55e188e6330e915634c303d81030dca8353b2e4..ba255d2fd925a04a52005d7c17e03831343e03c2 100644
--- a/Source/core/rendering/compositing/CompositingLayerAssigner.h
+++ b/Source/core/rendering/compositing/CompositingLayerAssigner.h
@@ -40,7 +40,7 @@ public:
explicit CompositingLayerAssigner(RenderLayerCompositor*);
~CompositingLayerAssigner();
- void assign(RenderLayer* updateRoot, bool& layersChanged);
+ void assign(RenderLayer* updateRoot, bool& layersChanged, Vector<RenderLayer*>& layersNeedingRepaint);
// FIXME: This function should be private. We should remove the one caller
// once we've fixed the compositing chicken/egg issues.
@@ -77,13 +77,15 @@ private:
uint64_t totalAreaOfSquashedRects;
};
- void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, bool& layersChanged);
- void assignLayersToBackingsForReflectionLayer(RenderLayer* reflectionLayer, bool& layersChanged);
+ void assignLayersToBackingsInternal(RenderLayer*, SquashingState&, bool& layersChanged, Vector<RenderLayer*>& layersNeedingRepaint);
+ void assignLayersToBackingsForReflectionLayer(RenderLayer* reflectionLayer, bool& layersChanged, Vector<RenderLayer*>& layersNeedingRepaint);
bool canSquashIntoCurrentSquashingOwner(const RenderLayer*, const SquashingState&);
bool squashingWouldExceedSparsityTolerance(const RenderLayer* candidate, const SquashingState&);
- bool updateSquashingAssignment(RenderLayer*, SquashingState&, CompositingStateTransitionType);
+ bool updateSquashingAssignment(RenderLayer*, SquashingState&, CompositingStateTransitionType, Vector<RenderLayer*>& layersNeedingRepaint);
bool needsOwnBacking(const RenderLayer*) const;
+ Vector<RenderLayer*> m_layersNeedingRepaint;
Ian Vollick 2014/06/04 04:40:35 (Note: we've chatted about removing this offline;
chrishtr 2014/06/04 16:35:55 Done.
+
RenderLayerCompositor* m_compositor;
bool m_layerSquashingEnabled;
};

Powered by Google App Engine
This is Rietveld 408576698