| 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 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 paintForSlimmingPaintV2(interestRect); | 2441 paintForSlimmingPaintV2(interestRect); |
| 2442 compositeForSlimmingPaintV2(); | 2442 compositeForSlimmingPaintV2(); |
| 2443 } | 2443 } |
| 2444 | 2444 |
| 2445 if (RuntimeEnabledFeatures::frameTimingSupportEnabled()) | 2445 if (RuntimeEnabledFeatures::frameTimingSupportEnabled()) |
| 2446 updateFrameTimingRequestsIfNeeded(); | 2446 updateFrameTimingRequestsIfNeeded(); |
| 2447 | 2447 |
| 2448 ASSERT(!view->hasPendingSelection()); | 2448 ASSERT(!view->hasPendingSelection()); |
| 2449 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationCl
ean | 2449 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationCl
ean |
| 2450 || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycl
e().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean)); | 2450 || (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycl
e().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean)); |
| 2451 |
| 2452 // Temporary callback for crbug.com/487345,402044 |
| 2453 // TODO(ojan): Make this more general to be used by PositionObserver |
| 2454 // and rAF throttling. |
| 2455 view->sendMediaPositionChangeNotifications(); |
| 2451 } | 2456 } |
| 2452 } | 2457 } |
| 2453 } | 2458 } |
| 2454 | 2459 |
| 2455 void FrameView::paintForSlimmingPaintV2(const LayoutRect& interestRect) | 2460 void FrameView::paintForSlimmingPaintV2(const LayoutRect& interestRect) |
| 2456 { | 2461 { |
| 2457 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); | 2462 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 2458 ASSERT(frame() == page()->mainFrame() || (!frame().tree().parent()->isLocalF
rame())); | 2463 ASSERT(frame() == page()->mainFrame() || (!frame().tree().parent()->isLocalF
rame())); |
| 2459 | 2464 |
| 2460 LayoutView* view = layoutView(); | 2465 LayoutView* view = layoutView(); |
| (...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3914 | 3919 |
| 3915 if (!graphicsLayer) | 3920 if (!graphicsLayer) |
| 3916 return; | 3921 return; |
| 3917 | 3922 |
| 3918 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); | 3923 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); |
| 3919 | 3924 |
| 3920 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); | 3925 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); |
| 3921 } | 3926 } |
| 3922 | 3927 |
| 3923 } // namespace blink | 3928 } // namespace blink |
| OLD | NEW |