Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2653733004: Add Blink.PrePaint.UpdateTime as an alias of Blink.PaintInvalidation.UpdateTime (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3183 3183
3184 // Ensure that we become visually non-empty eventually. 3184 // Ensure that we become visually non-empty eventually.
3185 // TODO(esprehn): This should check isRenderingReady() instead. 3185 // TODO(esprehn): This should check isRenderingReady() instead.
3186 if (frame().document()->hasFinishedParsing() && 3186 if (frame().document()->hasFinishedParsing() &&
3187 frame().loader().stateMachine()->committedFirstRealDocumentLoad()) 3187 frame().loader().stateMachine()->committedFirstRealDocumentLoad())
3188 m_isVisuallyNonEmpty = true; 3188 m_isVisuallyNonEmpty = true;
3189 } 3189 }
3190 3190
3191 void FrameView::invalidateTreeIfNeededRecursive() { 3191 void FrameView::invalidateTreeIfNeededRecursive() {
3192 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PaintInvalidation.UpdateTime"); 3192 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PaintInvalidation.UpdateTime");
3193 invalidateTreeIfNeededRecursiveInternal(); 3193 {
3194 // For comparison to SlimmingPaintInvalidation.
3195 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime");
3196 invalidateTreeIfNeededRecursiveInternal();
3197 }
3194 } 3198 }
3195 3199
3196 void FrameView::invalidateTreeIfNeededRecursiveInternal() { 3200 void FrameView::invalidateTreeIfNeededRecursiveInternal() {
3197 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); 3201 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
3198 CHECK(layoutView()); 3202 CHECK(layoutView());
3199 3203
3200 // We need to stop recursing here since a child frame view might not be 3204 // We need to stop recursing here since a child frame view might not be
3201 // throttled even though we are (e.g., it didn't compute its visibility yet). 3205 // throttled even though we are (e.g., it didn't compute its visibility yet).
3202 if (shouldThrottleRendering()) 3206 if (shouldThrottleRendering())
3203 return; 3207 return;
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
4989 // This is the top-level frame, so no mapping necessary. 4993 // This is the top-level frame, so no mapping necessary.
4990 if (m_frame->isMainFrame()) 4994 if (m_frame->isMainFrame())
4991 return; 4995 return;
4992 4996
4993 LayoutRect viewportIntersectionRect(remoteViewportIntersection()); 4997 LayoutRect viewportIntersectionRect(remoteViewportIntersection());
4994 transformState.move( 4998 transformState.move(
4995 LayoutSize(-viewportIntersectionRect.x(), -viewportIntersectionRect.y())); 4999 LayoutSize(-viewportIntersectionRect.x(), -viewportIntersectionRect.y()));
4996 } 5000 }
4997 5001
4998 } // namespace blink 5002 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698