OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
8 | 8 |
9 #include "TiledLayerChromium.h" | 9 #include "TiledLayerChromium.h" |
10 | 10 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 continue; | 656 continue; |
657 IntRect tileRect = m_tiler->tileRect(tile); | 657 IntRect tileRect = m_tiler->tileRect(tile); |
658 setPriorityForTexture(visibleContentRect(), tileRect, drawsToRoot, small
AnimatedLayer, tile->managedTexture()); | 658 setPriorityForTexture(visibleContentRect(), tileRect, drawsToRoot, small
AnimatedLayer, tile->managedTexture()); |
659 } | 659 } |
660 } | 660 } |
661 | 661 |
662 Region TiledLayerChromium::visibleContentOpaqueRegion() const | 662 Region TiledLayerChromium::visibleContentOpaqueRegion() const |
663 { | 663 { |
664 if (m_skipsDraw) | 664 if (m_skipsDraw) |
665 return Region(); | 665 return Region(); |
666 if (opaque()) | 666 if (contentsOpaque()) |
667 return visibleContentRect(); | 667 return visibleContentRect(); |
668 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); | 668 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); |
669 } | 669 } |
670 | 670 |
671 void TiledLayerChromium::resetUpdateState() | 671 void TiledLayerChromium::resetUpdateState() |
672 { | 672 { |
673 m_skipsDraw = false; | 673 m_skipsDraw = false; |
674 m_failedUpdate = false; | 674 m_failedUpdate = false; |
675 | 675 |
676 CCLayerTilingData::TileMap::const_iterator end = m_tiler->tiles().end(); | 676 CCLayerTilingData::TileMap::const_iterator end = m_tiler->tiles().end(); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 prepaintRect.inflateX(m_tiler->tileSize().width()); | 802 prepaintRect.inflateX(m_tiler->tileSize().width()); |
803 prepaintRect.inflateY(m_tiler->tileSize().height() * 2); | 803 prepaintRect.inflateY(m_tiler->tileSize().height() * 2); |
804 IntRect contentRect(IntPoint::zero(), contentBounds()); | 804 IntRect contentRect(IntPoint::zero(), contentBounds()); |
805 prepaintRect.intersect(contentRect); | 805 prepaintRect.intersect(contentRect); |
806 | 806 |
807 return prepaintRect; | 807 return prepaintRect; |
808 } | 808 } |
809 | 809 |
810 } | 810 } |
811 #endif // USE(ACCELERATED_COMPOSITING) | 811 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |