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: Source/core/frame/FrameView.cpp

Issue 1329853004: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoplay_step1
Patch Set: Created 5 years, 3 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
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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 paintForSlimmingPaintV2(); 2471 paintForSlimmingPaintV2();
2472 compositeForSlimmingPaintV2(); 2472 compositeForSlimmingPaintV2();
2473 } 2473 }
2474 2474
2475 if (RuntimeEnabledFeatures::frameTimingSupportEnabled()) 2475 if (RuntimeEnabledFeatures::frameTimingSupportEnabled())
2476 updateFrameTimingRequestsIfNeeded(); 2476 updateFrameTimingRequestsIfNeeded();
2477 2477
2478 ASSERT(!view->hasPendingSelection()); 2478 ASSERT(!view->hasPendingSelection());
2479 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationCl ean 2479 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationCl ean
2480 || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycl e().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean)); 2480 || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycl e().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean));
2481
2482 // Temporary callback for crbug.com/487345,402044
2483 // TODO(ojan): Make this more general to be used by PositionObserver
2484 // and rAF throttling.
2485 view->sendMediaPositionChangeNotifications();
2481 } 2486 }
2482 } 2487 }
2483 2488
2484 #ifndef NDEBUG 2489 #ifndef NDEBUG
2485 // TODO(jchaffraix): We will want to clear the clip rects in release too 2490 // TODO(jchaffraix): We will want to clear the clip rects in release too
2486 // to reduce our long-term memory consumption. However this requires us 2491 // to reduce our long-term memory consumption. However this requires us
2487 // to migrate all of the clip rects to the state machine and evaluate 2492 // to migrate all of the clip rects to the state machine and evaluate
2488 // the performance impacts of this. 2493 // the performance impacts of this.
2489 layoutView()->layer()->clipper().clearClipRectsIncludingDescendants(Absolute ClipRects); 2494 layoutView()->layer()->clipper().clearClipRectsIncludingDescendants(Absolute ClipRects);
2490 #endif 2495 #endif
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 3976
3972 if (!graphicsLayer) 3977 if (!graphicsLayer)
3973 return; 3978 return;
3974 3979
3975 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect); 3980 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect);
3976 3981
3977 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect))); 3982 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect)));
3978 } 3983 }
3979 3984
3980 } // namespace blink 3985 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698