Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 bool needsContentsCompositingLayer(const RenderLayer*) const; | 110 bool needsContentsCompositingLayer(const RenderLayer*) const; |
| 111 | 111 |
| 112 bool supportsFixedRootBackgroundCompositing() const; | 112 bool supportsFixedRootBackgroundCompositing() const; |
| 113 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 113 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
| 114 GraphicsLayer* fixedRootBackgroundLayer() const; | 114 GraphicsLayer* fixedRootBackgroundLayer() const; |
| 115 void setNeedsUpdateFixedBackground() { m_needsUpdateFixedBackground = true; } | 115 void setNeedsUpdateFixedBackground() { m_needsUpdateFixedBackground = true; } |
| 116 | 116 |
| 117 // Repaint the appropriate layers when the given RenderLayer starts or stops being composited. | 117 // Repaint the appropriate layers when the given RenderLayer starts or stops being composited. |
| 118 void repaintOnCompositingChange(RenderLayer*); | 118 void repaintOnCompositingChange(RenderLayer*); |
| 119 | 119 |
| 120 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | |
| 121 void repaintCompositedLayers(); | 120 void repaintCompositedLayers(); |
| 122 | 121 |
| 123 RenderLayer* rootRenderLayer() const; | 122 RenderLayer* rootRenderLayer() const; |
| 124 GraphicsLayer* rootGraphicsLayer() const; | 123 GraphicsLayer* rootGraphicsLayer() const; |
| 125 GraphicsLayer* scrollLayer() const; | 124 GraphicsLayer* scrollLayer() const; |
| 126 GraphicsLayer* containerLayer() const; | 125 GraphicsLayer* containerLayer() const; |
| 127 | 126 |
| 128 // We don't always have a root transform layer. This function lazily allocat es one | 127 // We don't always have a root transform layer. This function lazily allocat es one |
| 129 // and returns it as required. | 128 // and returns it as required. |
| 130 GraphicsLayer* ensureRootTransformLayer(); | 129 GraphicsLayer* ensureRootTransformLayer(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 | 180 |
| 182 bool inOverlayFullscreenVideo() const { return m_inOverlayFullscreenVideo; } | 181 bool inOverlayFullscreenVideo() const { return m_inOverlayFullscreenVideo; } |
| 183 | 182 |
| 184 private: | 183 private: |
| 185 class OverlapMap; | 184 class OverlapMap; |
| 186 | 185 |
| 187 #if ASSERT_ENABLED | 186 #if ASSERT_ENABLED |
| 188 void assertNoUnresolvedDirtyBits(); | 187 void assertNoUnresolvedDirtyBits(); |
| 189 #endif | 188 #endif |
| 190 | 189 |
| 190 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | |
|
Ian Vollick
2014/06/27 20:42:56
Should this not be gone entirely?
chrishtr
2014/06/27 20:48:21
Yes, thanks for catching that. Fixed.
| |
| 191 | |
| 191 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect | 192 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect |
| 192 // compositing. | 193 // compositing. |
| 193 bool updateLayerIfViewportConstrained(RenderLayer*); | 194 bool updateLayerIfViewportConstrained(RenderLayer*); |
| 194 | 195 |
| 195 // GraphicsLayerClient implementation | 196 // GraphicsLayerClient implementation |
| 196 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { } | 197 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { } |
| 197 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE; | 198 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE; |
| 198 | 199 |
| 199 virtual bool isTrackingRepaints() const OVERRIDE; | 200 virtual bool isTrackingRepaints() const OVERRIDE; |
| 200 | 201 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 #if USE(RUBBER_BANDING) | 270 #if USE(RUBBER_BANDING) |
| 270 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 271 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 271 #endif | 272 #endif |
| 272 | 273 |
| 273 bool m_inOverlayFullscreenVideo; | 274 bool m_inOverlayFullscreenVideo; |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace WebCore | 277 } // namespace WebCore |
| 277 | 278 |
| 278 #endif // RenderLayerCompositor_h | 279 #endif // RenderLayerCompositor_h |
| OLD | NEW |