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

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

Issue 143283011: Make squashing work with subpixel layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ASSERT 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/compositing/CompositedLayerMapping.h
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.h b/Source/core/rendering/compositing/CompositedLayerMapping.h
index bbd9550571a1739016a3c98cb8402875a398267d..dd1790599d64f0e3e0fc0666bc49102edf35da68 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.h
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.h
@@ -49,10 +49,11 @@ struct GraphicsLayerPaintInfo {
// an intermediate offset for a squashed RenderLayer, described with respect to the CompositedLayerMapping's
// owning layer that would eventually have the m_squashingLayer. Once the shared GraphicsLayer's bounds are
// known, then we can trivially convert this offset to m_squashingLayer's space.
- IntSize offsetFromSquashingCLM;
+ LayoutSize offsetFromSquashingCLM;
// Offset describing where this squashed RenderLayer paints into the shared GraphicsLayer backing.
IntSize offsetFromRenderer;
+ LayoutSize subpixelAccumulation;
GraphicsLayerPaintingPhase paintingPhase;
@@ -167,7 +168,7 @@ public:
bool hasUnpositionedOverflowControlsLayers() const;
// Returns true if the assignment actually changed the assigned squashing layer.
- bool updateSquashingLayerAssignment(RenderLayer*, IntSize offsetFromSquashingCLM, size_t nextSquashedLayerIndex);
+ bool updateSquashingLayerAssignment(RenderLayer*, LayoutSize offsetFromSquashingCLM, size_t nextSquashedLayerIndex);
void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*);
void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex);

Powered by Google App Engine
This is Rietveld 408576698