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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 | 97 |
| 98 // Update the compositing state of the given layer. Returns true if that sta te changed. | 98 // Update the compositing state of the given layer. Returns true if that sta te changed. |
| 99 enum CompositingChangeRepaint { CompositingChangeRepaintNow, CompositingChan geWillRepaintLater }; | 99 enum CompositingChangeRepaint { CompositingChangeRepaintNow, CompositingChan geWillRepaintLater }; |
| 100 bool updateLayerCompositingState(RenderLayer*, CompositingChangeRepaint = Co mpositingChangeRepaintNow); | 100 bool updateLayerCompositingState(RenderLayer*, CompositingChangeRepaint = Co mpositingChangeRepaintNow); |
| 101 | 101 |
| 102 // Update the geometry for compositing children of compositingAncestor. | 102 // Update the geometry for compositing children of compositingAncestor. |
| 103 void updateCompositingDescendantGeometry(RenderLayer* compositingAncestor, R enderLayer*, bool compositedChildrenOnly); | 103 void updateCompositingDescendantGeometry(RenderLayer* compositingAncestor, R enderLayer*, bool compositedChildrenOnly); |
| 104 | 104 |
| 105 // Whether layer's backing needs a graphics layer to do clipping by an ances tor (non-stacking-context parent with overflow). | 105 // Whether layer's backing needs a graphics layer to do clipping by an ances tor (non-stacking-context parent with overflow). |
| 106 bool clippedByAncestor(RenderLayer*) const; | 106 bool clippedByAncestor(RenderLayer*) const; |
| 107 // Whether a layer's backing needs an extra graphics layer to do clipping by a scroll parent. | |
| 108 bool clippedByScrollingAncestor(RenderLayer*) const; | |
|
enne (OOO)
2013/08/22 20:54:30
I see. This is your solution to the ordering issu
| |
| 107 // Whether layer's backing needs a graphics layer to clip z-order children o f the given layer. | 109 // Whether layer's backing needs a graphics layer to clip z-order children o f the given layer. |
| 108 bool clipsCompositingDescendants(const RenderLayer*) const; | 110 bool clipsCompositingDescendants(const RenderLayer*) const; |
| 109 | 111 |
| 110 // Whether the given layer needs an extra 'contents' layer. | 112 // Whether the given layer needs an extra 'contents' layer. |
| 111 bool needsContentsCompositingLayer(const RenderLayer*) const; | 113 bool needsContentsCompositingLayer(const RenderLayer*) const; |
| 112 | 114 |
| 113 bool supportsFixedRootBackgroundCompositing() const; | 115 bool supportsFixedRootBackgroundCompositing() const; |
| 114 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 116 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
| 115 GraphicsLayer* fixedRootBackgroundLayer() const; | 117 GraphicsLayer* fixedRootBackgroundLayer() const; |
| 116 | 118 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. | 362 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. |
| 361 double m_obligatoryBackingStoreBytes; | 363 double m_obligatoryBackingStoreBytes; |
| 362 double m_secondaryBackingStoreBytes; | 364 double m_secondaryBackingStoreBytes; |
| 363 #endif | 365 #endif |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 | 368 |
| 367 } // namespace WebCore | 369 } // namespace WebCore |
| 368 | 370 |
| 369 #endif // RenderLayerCompositor_h | 371 #endif // RenderLayerCompositor_h |
| OLD | NEW |