| 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 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2518 if (PaintTiming* timing = m_owningLayer.paintTiming()) | 2518 if (PaintTiming* timing = m_owningLayer.paintTiming()) |
| 2519 timing->markFirstTextPaint(); | 2519 timing->markFirstTextPaint(); |
| 2520 } | 2520 } |
| 2521 | 2521 |
| 2522 void CompositedLayerMapping::notifyFirstImagePaint() | 2522 void CompositedLayerMapping::notifyFirstImagePaint() |
| 2523 { | 2523 { |
| 2524 if (PaintTiming* timing = m_owningLayer.paintTiming()) | 2524 if (PaintTiming* timing = m_owningLayer.paintTiming()) |
| 2525 timing->markFirstImagePaint(); | 2525 timing->markFirstImagePaint(); |
| 2526 } | 2526 } |
| 2527 | 2527 |
| 2528 void CompositedLayerMapping::notifyPaint() |
| 2529 { |
| 2530 if (PaintTiming* timing = m_owningLayer.paintTiming()) |
| 2531 timing->firstMeaningfulPaintDetector().notifyPaint(); |
| 2532 } |
| 2533 |
| 2528 IntRect CompositedLayerMapping::pixelSnappedCompositedBounds() const | 2534 IntRect CompositedLayerMapping::pixelSnappedCompositedBounds() const |
| 2529 { | 2535 { |
| 2530 LayoutRect bounds = m_compositedBounds; | 2536 LayoutRect bounds = m_compositedBounds; |
| 2531 bounds.move(m_owningLayer.subpixelAccumulation()); | 2537 bounds.move(m_owningLayer.subpixelAccumulation()); |
| 2532 return pixelSnappedIntRect(bounds); | 2538 return pixelSnappedIntRect(bounds); |
| 2533 } | 2539 } |
| 2534 | 2540 |
| 2535 bool CompositedLayerMapping::invalidateLayerIfNoPrecedingEntry(size_t indexToCle
ar) | 2541 bool CompositedLayerMapping::invalidateLayerIfNoPrecedingEntry(size_t indexToCle
ar) |
| 2536 { | 2542 { |
| 2537 PaintLayer* layerToRemove = m_squashedLayers[indexToClear].paintLayer; | 2543 PaintLayer* layerToRemove = m_squashedLayers[indexToClear].paintLayer; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2660 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2666 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2661 name = "Scrolling Contents Layer"; | 2667 name = "Scrolling Contents Layer"; |
| 2662 } else { | 2668 } else { |
| 2663 ASSERT_NOT_REACHED(); | 2669 ASSERT_NOT_REACHED(); |
| 2664 } | 2670 } |
| 2665 | 2671 |
| 2666 return name; | 2672 return name; |
| 2667 } | 2673 } |
| 2668 | 2674 |
| 2669 } // namespace blink | 2675 } // namespace blink |
| OLD | NEW |