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: Source/core/rendering/RenderLayerCompositor.h

Issue 143283011: Make squashing work with subpixel layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 void addToOverlapMap(OverlapMap&, RenderLayer*, IntRect& layerBounds, bool& boundsComputed); 232 void addToOverlapMap(OverlapMap&, RenderLayer*, IntRect& layerBounds, bool& boundsComputed);
233 void addToOverlapMapRecursive(OverlapMap&, RenderLayer*, RenderLayer* ancest orLayer = 0); 233 void addToOverlapMapRecursive(OverlapMap&, RenderLayer*, RenderLayer* ancest orLayer = 0);
234 234
235 struct SquashingState { 235 struct SquashingState {
236 SquashingState() 236 SquashingState()
237 : mostRecentMapping(0) 237 : mostRecentMapping(0)
238 , hasMostRecentMapping(false) 238 , hasMostRecentMapping(false)
239 , nextSquashedLayerIndex(0) { } 239 , nextSquashedLayerIndex(0) { }
240 240
241 void updateSquashingStateForNewMapping(CompositedLayerMappingPtr, bool h asNewCompositedLayerMapping, IntPoint newOffsetFromAbsoluteForSquashingCLM); 241 void updateSquashingStateForNewMapping(CompositedLayerMappingPtr, bool h asNewCompositedLayerMapping, LayoutPoint newOffsetFromAbsoluteForSquashingCLM);
242 242
243 // The most recent composited backing that the layer should squash onto if needed. 243 // The most recent composited backing that the layer should squash onto if needed.
244 CompositedLayerMappingPtr mostRecentMapping; 244 CompositedLayerMappingPtr mostRecentMapping;
245 bool hasMostRecentMapping; 245 bool hasMostRecentMapping;
246 246
247 // Absolute coordinates of the compositedLayerMapping's owning layer. Th is is used for computing the correct 247 // Absolute coordinates of the compositedLayerMapping's owning layer. Th is is used for computing the correct
248 // positions of renderlayers when they paint into the squashing layer. 248 // positions of renderlayers when they paint into the squashing layer.
249 IntPoint offsetFromAbsoluteForSquashingCLM; 249 LayoutPoint offsetFromAbsoluteForSquashingCLM;
250 250
251 // Counter that tracks what index the next RenderLayer would be if it ge ts squashed to the current squashing layer. 251 // Counter that tracks what index the next RenderLayer would be if it ge ts squashed to the current squashing layer.
252 size_t nextSquashedLayerIndex; 252 size_t nextSquashedLayerIndex;
253 }; 253 };
254 254
255 // Forces an update for all frames of frame tree recursively. Used only when the mainFrame compositor is ready to 255 // Forces an update for all frames of frame tree recursively. Used only when the mainFrame compositor is ready to
256 // finish all deferred work. 256 // finish all deferred work.
257 static void finishCompositingUpdateForFrameTree(Frame*); 257 static void finishCompositingUpdateForFrameTree(Frame*);
258 258
259 // Returns true if any layer's compositing changed 259 // Returns true if any layer's compositing changed
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 367 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
368 #if USE(RUBBER_BANDING) 368 #if USE(RUBBER_BANDING)
369 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 369 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
370 #endif 370 #endif
371 }; 371 };
372 372
373 373
374 } // namespace WebCore 374 } // namespace WebCore
375 375
376 #endif // RenderLayerCompositor_h 376 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698