OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 #include "platform/graphics/GraphicsLayer.h" | 33 #include "platform/graphics/GraphicsLayer.h" |
34 #include "platform/graphics/GraphicsLayerClient.h" | 34 #include "platform/graphics/GraphicsLayerClient.h" |
35 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class PaintLayerCompositor; | 39 class PaintLayerCompositor; |
40 | 40 |
41 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial subt
ree of Layers into a GraphicsLayer. | 41 // A GraphicsLayerPaintInfo contains all the info needed to paint a partial subt
ree of Layers into a GraphicsLayer. |
42 struct GraphicsLayerPaintInfo { | 42 struct GraphicsLayerPaintInfo { |
43 ALLOW_ONLY_INLINE_ALLOCATION(); | 43 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
44 PaintLayer* paintLayer; | 44 PaintLayer* paintLayer; |
45 | 45 |
46 LayoutRect compositedBounds; | 46 LayoutRect compositedBounds; |
47 | 47 |
48 // The clip rect to apply, in the local coordinate space of the squashed lay
er, when painting it. | 48 // The clip rect to apply, in the local coordinate space of the squashed lay
er, when painting it. |
49 IntRect localClipRectForSquashedLayer; | 49 IntRect localClipRectForSquashedLayer; |
50 | 50 |
51 // Offset describing where this squashed Layer paints into the shared Graphi
csLayer backing. | 51 // Offset describing where this squashed Layer paints into the shared Graphi
csLayer backing. |
52 IntSize offsetFromLayoutObject; | 52 IntSize offsetFromLayoutObject; |
53 bool offsetFromLayoutObjectSet; | 53 bool offsetFromLayoutObjectSet; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 439 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
440 unsigned m_scrollingContentsAreEmpty : 1; | 440 unsigned m_scrollingContentsAreEmpty : 1; |
441 | 441 |
442 friend class CompositedLayerMappingTest; | 442 friend class CompositedLayerMappingTest; |
443 }; | 443 }; |
444 | 444 |
445 } // namespace blink | 445 } // namespace blink |
446 | 446 |
447 #endif // CompositedLayerMapping_h | 447 #endif // CompositedLayerMapping_h |
OLD | NEW |