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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // CompositedLayerMapping keeps track of how Layers of the layout tree correspon
d to | 64 // CompositedLayerMapping keeps track of how Layers of the layout tree correspon
d to |
65 // GraphicsLayers of the composited layer tree. Each instance of CompositedLayer
Mapping | 65 // GraphicsLayers of the composited layer tree. Each instance of CompositedLayer
Mapping |
66 // manages a small cluster of GraphicsLayers and the references to which Layers | 66 // manages a small cluster of GraphicsLayers and the references to which Layers |
67 // and paint phases contribute to each GraphicsLayer. | 67 // and paint phases contribute to each GraphicsLayer. |
68 // | 68 // |
69 // Currently (Oct. 2013) there is one CompositedLayerMapping for each Layer, | 69 // Currently (Oct. 2013) there is one CompositedLayerMapping for each Layer, |
70 // but this is likely to evolve soon. | 70 // but this is likely to evolve soon. |
71 class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient { | 71 class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient { |
72 | 72 |
73 WTF_MAKE_NONCOPYABLE(CompositedLayerMapping); USING_FAST_MALLOC(CompositedPa
intLayerMapping); | 73 WTF_MAKE_NONCOPYABLE(CompositedLayerMapping); USING_FAST_MALLOC(CompositedLa
yerMapping); |
74 public: | 74 public: |
75 explicit CompositedLayerMapping(PaintLayer&); | 75 explicit CompositedLayerMapping(PaintLayer&); |
76 ~CompositedLayerMapping() override; | 76 ~CompositedLayerMapping() override; |
77 | 77 |
78 PaintLayer& owningLayer() const { return m_owningLayer; } | 78 PaintLayer& owningLayer() const { return m_owningLayer; } |
79 | 79 |
80 bool updateGraphicsLayerConfiguration(); | 80 bool updateGraphicsLayerConfiguration(); |
81 void updateGraphicsLayerGeometry(const PaintLayer* compositingContainer, con
st PaintLayer* compositingStackingContext, Vector<PaintLayer*>& layersNeedingPai
ntInvalidation); | 81 void updateGraphicsLayerGeometry(const PaintLayer* compositingContainer, con
st PaintLayer* compositingStackingContext, Vector<PaintLayer*>& layersNeedingPai
ntInvalidation); |
82 | 82 |
83 // Update whether layer needs blending. | 83 // Update whether layer needs blending. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 441 |
442 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 442 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
443 unsigned m_scrollingContentsAreEmpty : 1; | 443 unsigned m_scrollingContentsAreEmpty : 1; |
444 | 444 |
445 friend class CompositedLayerMappingTest; | 445 friend class CompositedLayerMappingTest; |
446 }; | 446 }; |
447 | 447 |
448 } // namespace blink | 448 } // namespace blink |
449 | 449 |
450 #endif // CompositedLayerMapping_h | 450 #endif // CompositedLayerMapping_h |
OLD | NEW |