| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 3195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3206 | 3206 |
| 3207 // Ensure that we become visually non-empty eventually. | 3207 // Ensure that we become visually non-empty eventually. |
| 3208 // TODO(esprehn): This should check isRenderingReady() instead. | 3208 // TODO(esprehn): This should check isRenderingReady() instead. |
| 3209 if (frame().document()->hasFinishedParsing() && | 3209 if (frame().document()->hasFinishedParsing() && |
| 3210 frame().loader().stateMachine()->committedFirstRealDocumentLoad()) | 3210 frame().loader().stateMachine()->committedFirstRealDocumentLoad()) |
| 3211 m_isVisuallyNonEmpty = true; | 3211 m_isVisuallyNonEmpty = true; |
| 3212 } | 3212 } |
| 3213 | 3213 |
| 3214 void FrameView::invalidateTreeIfNeededRecursive() { | 3214 void FrameView::invalidateTreeIfNeededRecursive() { |
| 3215 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PaintInvalidation.UpdateTime"); | 3215 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PaintInvalidation.UpdateTime"); |
| 3216 invalidateTreeIfNeededRecursiveInternal(); | 3216 { |
| 3217 // For comparison to SlimmingPaintInvalidation. |
| 3218 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime"); |
| 3219 invalidateTreeIfNeededRecursiveInternal(); |
| 3220 } |
| 3217 } | 3221 } |
| 3218 | 3222 |
| 3219 void FrameView::invalidateTreeIfNeededRecursiveInternal() { | 3223 void FrameView::invalidateTreeIfNeededRecursiveInternal() { |
| 3220 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); | 3224 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); |
| 3221 CHECK(layoutView()); | 3225 CHECK(layoutView()); |
| 3222 | 3226 |
| 3223 // We need to stop recursing here since a child frame view might not be | 3227 // We need to stop recursing here since a child frame view might not be |
| 3224 // throttled even though we are (e.g., it didn't compute its visibility yet). | 3228 // throttled even though we are (e.g., it didn't compute its visibility yet). |
| 3225 if (shouldThrottleRendering()) | 3229 if (shouldThrottleRendering()) |
| 3226 return; | 3230 return; |
| (...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5022 std::unique_ptr<CompositorAnimationTimeline> timeline) { | 5026 std::unique_ptr<CompositorAnimationTimeline> timeline) { |
| 5023 m_animationTimeline = std::move(timeline); | 5027 m_animationTimeline = std::move(timeline); |
| 5024 } | 5028 } |
| 5025 | 5029 |
| 5026 void FrameView::setAnimationHost( | 5030 void FrameView::setAnimationHost( |
| 5027 std::unique_ptr<CompositorAnimationHost> host) { | 5031 std::unique_ptr<CompositorAnimationHost> host) { |
| 5028 m_animationHost = std::move(host); | 5032 m_animationHost = std::move(host); |
| 5029 } | 5033 } |
| 5030 | 5034 |
| 5031 } // namespace blink | 5035 } // namespace blink |
| OLD | NEW |