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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Currently (Oct. 2013) there is one CompositedLayerMapping for each RenderLaye
r, | 78 // Currently (Oct. 2013) there is one CompositedLayerMapping for each RenderLaye
r, |
79 // but this is likely to evolve soon. | 79 // but this is likely to evolve soon. |
80 class CompositedLayerMapping FINAL : public GraphicsLayerClient { | 80 class CompositedLayerMapping FINAL : public GraphicsLayerClient { |
81 WTF_MAKE_NONCOPYABLE(CompositedLayerMapping); WTF_MAKE_FAST_ALLOCATED; | 81 WTF_MAKE_NONCOPYABLE(CompositedLayerMapping); WTF_MAKE_FAST_ALLOCATED; |
82 public: | 82 public: |
83 explicit CompositedLayerMapping(RenderLayer&); | 83 explicit CompositedLayerMapping(RenderLayer&); |
84 virtual ~CompositedLayerMapping(); | 84 virtual ~CompositedLayerMapping(); |
85 | 85 |
86 RenderLayer& owningLayer() const { return m_owningLayer; } | 86 RenderLayer& owningLayer() const { return m_owningLayer; } |
87 | 87 |
88 void updateAfterLayout(bool needsFullRepaint, bool isUpdateRoot); | |
89 | |
90 // Returns true if layer configuration changed. | 88 // Returns true if layer configuration changed. |
91 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); | 89 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); |
92 // Update graphics layer position and bounds. | 90 // Update graphics layer position and bounds. |
93 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType); | 91 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType); |
94 // Update whether layer needs blending. | 92 // Update whether layer needs blending. |
95 void updateContentsOpaque(); | 93 void updateContentsOpaque(); |
96 | 94 |
97 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } | 95 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } |
98 | 96 |
99 // Layer to clip children | 97 // Layer to clip children |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 373 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
376 bool m_canCompositeFilters : 1; | 374 bool m_canCompositeFilters : 1; |
377 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 375 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
378 bool m_needToUpdateGraphicsLayer : 1; | 376 bool m_needToUpdateGraphicsLayer : 1; |
379 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 377 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
380 }; | 378 }; |
381 | 379 |
382 } // namespace WebCore | 380 } // namespace WebCore |
383 | 381 |
384 #endif // CompositedLayerMapping_h | 382 #endif // CompositedLayerMapping_h |
OLD | NEW |