| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef CompositedDeprecatedPaintLayerMapping_h | 26 #ifndef CompositedDeprecatedPaintLayerMapping_h |
| 27 #define CompositedDeprecatedPaintLayerMapping_h | 27 #define CompositedDeprecatedPaintLayerMapping_h |
| 28 | 28 |
| 29 #include "core/layout/compositing/GraphicsLayerUpdater.h" | 29 #include "core/layout/compositing/GraphicsLayerUpdater.h" |
| 30 #include "core/paint/DeprecatedPaintLayer.h" | 30 #include "core/paint/DeprecatedPaintLayer.h" |
| 31 #include "platform/geometry/FloatPoint.h" | 31 #include "platform/geometry/FloatPoint.h" |
| 32 #include "platform/geometry/FloatPoint3D.h" | 32 #include "platform/geometry/FloatPoint3D.h" |
| 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 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 class DeprecatedPaintLayerCompositor; | 39 class DeprecatedPaintLayerCompositor; |
| 39 | 40 |
| 40 // 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. |
| 41 struct GraphicsLayerPaintInfo { | 42 struct GraphicsLayerPaintInfo { |
| 43 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 42 DeprecatedPaintLayer* paintLayer; | 44 DeprecatedPaintLayer* paintLayer; |
| 43 | 45 |
| 44 LayoutRect compositedBounds; | 46 LayoutRect compositedBounds; |
| 45 | 47 |
| 46 // 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. |
| 47 IntRect localClipRectForSquashedLayer; | 49 IntRect localClipRectForSquashedLayer; |
| 48 | 50 |
| 49 // 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. |
| 50 IntSize offsetFromLayoutObject; | 52 IntSize offsetFromLayoutObject; |
| 51 bool offsetFromLayoutObjectSet; | 53 bool offsetFromLayoutObjectSet; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 unsigned m_pendingUpdateScope : 2; | 424 unsigned m_pendingUpdateScope : 2; |
| 423 unsigned m_isMainFrameLayoutViewLayer : 1; | 425 unsigned m_isMainFrameLayoutViewLayer : 1; |
| 424 | 426 |
| 425 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 427 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 426 unsigned m_scrollingContentsAreEmpty : 1; | 428 unsigned m_scrollingContentsAreEmpty : 1; |
| 427 }; | 429 }; |
| 428 | 430 |
| 429 } // namespace blink | 431 } // namespace blink |
| 430 | 432 |
| 431 #endif // CompositedDeprecatedPaintLayerMapping_h | 433 #endif // CompositedDeprecatedPaintLayerMapping_h |
| OLD | NEW |