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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 } | 428 } |
429 } else { | 429 } else { |
430 if (hasScrollingLayer()) | 430 if (hasScrollingLayer()) |
431 m_scrollingContentsLayer->setContentsOpaque(false); | 431 m_scrollingContentsLayer->setContentsOpaque(false); |
432 m_graphicsLayer->setContentsOpaque( | 432 m_graphicsLayer->setContentsOpaque( |
433 m_owningLayer.backgroundIsKnownToBeOpaqueInRect(compositedBounds())); | 433 m_owningLayer.backgroundIsKnownToBeOpaqueInRect(compositedBounds())); |
434 } | 434 } |
435 } | 435 } |
436 } | 436 } |
437 | 437 |
| 438 void CompositedLayerMapping::updateRasterizationPolicy() { |
| 439 bool allowTransformedRasterization = !requiresCompositing(m_owningLayer.getCom
positingReasons() & ~CompositingReasonSquashingDisallowed); |
| 440 m_graphicsLayer->contentLayer()->setAllowTransformedRasterization(allowTransfo
rmedRasterization); |
| 441 if (m_squashingLayer) |
| 442 m_squashingLayer->contentLayer()->setAllowTransformedRasterization(true); |
| 443 } |
| 444 |
438 void CompositedLayerMapping::updateCompositedBounds() { | 445 void CompositedLayerMapping::updateCompositedBounds() { |
439 ASSERT(m_owningLayer.compositor()->lifecycle().state() == | 446 ASSERT(m_owningLayer.compositor()->lifecycle().state() == |
440 DocumentLifecycle::InCompositingUpdate); | 447 DocumentLifecycle::InCompositingUpdate); |
441 // FIXME: if this is really needed for performance, it would be better to | 448 // FIXME: if this is really needed for performance, it would be better to |
442 // store it on Layer. | 449 // store it on Layer. |
443 m_compositedBounds = m_owningLayer.boundingBoxForCompositing(); | 450 m_compositedBounds = m_owningLayer.boundingBoxForCompositing(); |
444 m_contentOffsetInCompositingLayerDirty = true; | 451 m_contentOffsetInCompositingLayerDirty = true; |
445 } | 452 } |
446 | 453 |
447 void CompositedLayerMapping::updateAfterPartResize() { | 454 void CompositedLayerMapping::updateAfterPartResize() { |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 m_owningLayer.getScrollableArea()->positionOverflowControls(); | 997 m_owningLayer.getScrollableArea()->positionOverflowControls(); |
991 | 998 |
992 updateLayerBlendMode(layoutObject()->styleRef()); | 999 updateLayerBlendMode(layoutObject()->styleRef()); |
993 updateIsRootForIsolatedGroup(); | 1000 updateIsRootForIsolatedGroup(); |
994 updateContentsRect(); | 1001 updateContentsRect(); |
995 updateBackgroundColor(); | 1002 updateBackgroundColor(); |
996 updateDrawsContent(); | 1003 updateDrawsContent(); |
997 updateElementIdAndCompositorMutableProperties(); | 1004 updateElementIdAndCompositorMutableProperties(); |
998 updateBackgroundPaintsOntoScrollingContentsLayer(); | 1005 updateBackgroundPaintsOntoScrollingContentsLayer(); |
999 updateContentsOpaque(); | 1006 updateContentsOpaque(); |
| 1007 updateRasterizationPolicy(); |
1000 updateAfterPartResize(); | 1008 updateAfterPartResize(); |
1001 updateRenderingContext(); | 1009 updateRenderingContext(); |
1002 updateShouldFlattenTransform(); | 1010 updateShouldFlattenTransform(); |
1003 updateChildrenTransform(); | 1011 updateChildrenTransform(); |
1004 updateScrollParent(scrollParent()); | 1012 updateScrollParent(scrollParent()); |
1005 registerScrollingLayers(); | 1013 registerScrollingLayers(); |
1006 | 1014 |
1007 updateCompositingReasons(); | 1015 updateCompositingReasons(); |
1008 } | 1016 } |
1009 | 1017 |
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3358 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { | 3366 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { |
3359 name = "Decoration Layer"; | 3367 name = "Decoration Layer"; |
3360 } else { | 3368 } else { |
3361 ASSERT_NOT_REACHED(); | 3369 ASSERT_NOT_REACHED(); |
3362 } | 3370 } |
3363 | 3371 |
3364 return name; | 3372 return name; |
3365 } | 3373 } |
3366 | 3374 |
3367 } // namespace blink | 3375 } // namespace blink |
OLD | NEW |