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 enum UpdateAfterLayoutFlag { | 88 void updateAfterLayout(bool needsFullRepaint, bool isUpdateRoot); |
ojan
2014/04/01 21:32:59
<3 this cleanup.
| |
89 CompositingChildrenOnly = 1 << 0, | |
90 NeedsFullRepaint = 1 << 1, | |
91 IsUpdateRoot = 1 << 2 | |
92 }; | |
93 typedef unsigned UpdateAfterLayoutFlags; | |
94 void updateAfterLayout(UpdateAfterLayoutFlags); | |
95 | 89 |
96 // Returns true if layer configuration changed. | 90 // Returns true if layer configuration changed. |
97 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); | 91 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); |
98 // Update graphics layer position and bounds. | 92 // Update graphics layer position and bounds. |
99 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType); | 93 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType); |
100 // Update whether layer needs blending. | 94 // Update whether layer needs blending. |
101 void updateContentsOpaque(); | 95 void updateContentsOpaque(); |
102 | 96 |
103 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } | 97 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } |
104 | 98 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 375 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
382 bool m_canCompositeFilters : 1; | 376 bool m_canCompositeFilters : 1; |
383 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 377 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
384 bool m_needToUpdateGraphicsLayer : 1; | 378 bool m_needToUpdateGraphicsLayer : 1; |
385 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 379 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
386 }; | 380 }; |
387 | 381 |
388 } // namespace WebCore | 382 } // namespace WebCore |
389 | 383 |
390 #endif // CompositedLayerMapping_h | 384 #endif // CompositedLayerMapping_h |
OLD | NEW |