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

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

Issue 2657863004: Move scroll paint property nodes to be owned by the transform tree (Closed)
Patch Set: Rebase & remove parens 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
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 4959 matching lines...) Expand 10 before | Expand all | Expand 10 after
4970 return reasons; 4970 return reasons;
4971 } 4971 }
4972 4972
4973 String FrameView::mainThreadScrollingReasonsAsText() const { 4973 String FrameView::mainThreadScrollingReasonsAsText() const {
4974 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 4974 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
4975 DCHECK(lifecycle().state() >= DocumentLifecycle::PrePaintClean); 4975 DCHECK(lifecycle().state() >= DocumentLifecycle::PrePaintClean);
4976 4976
4977 // Slimming paint v2 stores main thread scrolling reasons on property 4977 // Slimming paint v2 stores main thread scrolling reasons on property
4978 // trees instead of in |m_mainThreadScrollingReasons|. 4978 // trees instead of in |m_mainThreadScrollingReasons|.
4979 MainThreadScrollingReasons reasons = 0; 4979 MainThreadScrollingReasons reasons = 0;
4980 if (const auto* scrollNode = scroll()) 4980 if (const auto* scrollTranslation = this->scrollTranslation())
4981 reasons |= scrollNode->mainThreadScrollingReasons(); 4981 reasons |= scrollTranslation->scrollNode()->mainThreadScrollingReasons();
4982 return String( 4982 return String(
4983 MainThreadScrollingReason::mainThreadScrollingReasonsAsText(reasons) 4983 MainThreadScrollingReason::mainThreadScrollingReasonsAsText(reasons)
4984 .c_str()); 4984 .c_str());
4985 } 4985 }
4986 4986
4987 DCHECK(lifecycle().state() >= DocumentLifecycle::CompositingClean); 4987 DCHECK(lifecycle().state() >= DocumentLifecycle::CompositingClean);
4988 if (layerForScrolling() && layerForScrolling()->platformLayer()) { 4988 if (layerForScrolling() && layerForScrolling()->platformLayer()) {
4989 String result( 4989 String result(
4990 MainThreadScrollingReason::mainThreadScrollingReasonsAsText( 4990 MainThreadScrollingReason::mainThreadScrollingReasonsAsText(
4991 layerForScrolling()->platformLayer()->mainThreadScrollingReasons()) 4991 layerForScrolling()->platformLayer()->mainThreadScrollingReasons())
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
5084 std::unique_ptr<CompositorAnimationTimeline> timeline) { 5084 std::unique_ptr<CompositorAnimationTimeline> timeline) {
5085 m_animationTimeline = std::move(timeline); 5085 m_animationTimeline = std::move(timeline);
5086 } 5086 }
5087 5087
5088 void FrameView::setAnimationHost( 5088 void FrameView::setAnimationHost(
5089 std::unique_ptr<CompositorAnimationHost> host) { 5089 std::unique_ptr<CompositorAnimationHost> host) {
5090 m_animationHost = std::move(host); 5090 m_animationHost = std::move(host);
5091 } 5091 }
5092 5092
5093 } // namespace blink 5093 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698