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

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

Issue 2728273002: [RLS] Don't create PaintLayerCompositor layers. (Closed)
Patch Set: Created 3 years, 9 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 5021 matching lines...) Expand 10 before | Expand all | Expand 10 after
5032 5032
5033 if (!page()->settings().getThreadedScrollingEnabled()) 5033 if (!page()->settings().getThreadedScrollingEnabled())
5034 reasons |= MainThreadScrollingReason::kThreadedScrollingDisabled; 5034 reasons |= MainThreadScrollingReason::kThreadedScrollingDisabled;
5035 5035
5036 if (!frame.isLocalFrame()) 5036 if (!frame.isLocalFrame())
5037 return; 5037 return;
5038 5038
5039 FrameView& frameView = *toLocalFrame(frame).view(); 5039 FrameView& frameView = *toLocalFrame(frame).view();
5040 if (frameView.shouldThrottleRendering()) 5040 if (frameView.shouldThrottleRendering())
5041 return; 5041 return;
5042 if (!frameView.layerForScrolling())
5043 return;
5044 5042
5045 reasons |= frameView.mainThreadScrollingReasonsPerFrame(); 5043 reasons |= frameView.mainThreadScrollingReasonsPerFrame();
5046 if (GraphicsLayer* layerForScrolling = toLocalFrame(frame) 5044 if (GraphicsLayer* layerForScrolling = toLocalFrame(frame)
5047 .view() 5045 .view()
5048 ->layoutViewportScrollableArea() 5046 ->layoutViewportScrollableArea()
5049 ->layerForScrolling()) { 5047 ->layerForScrolling()) {
5050 if (WebLayer* platformLayerForScrolling = 5048 if (WebLayer* platformLayerForScrolling =
5051 layerForScrolling->platformLayer()) { 5049 layerForScrolling->platformLayer()) {
5052 if (reasons) { 5050 if (reasons) {
5053 platformLayerForScrolling->addMainThreadScrollingReasons(reasons); 5051 platformLayerForScrolling->addMainThreadScrollingReasons(reasons);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
5249 void FrameView::setAnimationHost( 5247 void FrameView::setAnimationHost(
5250 std::unique_ptr<CompositorAnimationHost> host) { 5248 std::unique_ptr<CompositorAnimationHost> host) {
5251 m_animationHost = std::move(host); 5249 m_animationHost = std::move(host);
5252 } 5250 }
5253 5251
5254 LayoutUnit FrameView::caretWidth() const { 5252 LayoutUnit FrameView::caretWidth() const {
5255 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5253 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5256 } 5254 }
5257 5255
5258 } // namespace blink 5256 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698