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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 486493002: Merge AcceleratedCompositingForOverflowScroll into PreferCompositingToLCDText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm-overflowscroll: imagefailure Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 bool RenderLayerCompositor::layerSquashingEnabled() const 152 bool RenderLayerCompositor::layerSquashingEnabled() const
153 { 153 {
154 if (!RuntimeEnabledFeatures::layerSquashingEnabled()) 154 if (!RuntimeEnabledFeatures::layerSquashingEnabled())
155 return false; 155 return false;
156 if (Settings* settings = m_renderView.document().settings()) 156 if (Settings* settings = m_renderView.document().settings())
157 return settings->layerSquashingEnabled(); 157 return settings->layerSquashingEnabled();
158 return true; 158 return true;
159 } 159 }
160 160
161 bool RenderLayerCompositor::acceleratedCompositingForOverflowScrollEnabled() con st 161 bool RenderLayerCompositor::preferCompositingToLCDTextEnabled() const
162 { 162 {
163 return m_compositingReasonFinder.hasOverflowScrollTrigger(); 163 return m_compositingReasonFinder.hasOverflowScrollTrigger();
164 } 164 }
165 165
166 static RenderVideo* findFullscreenVideoRenderer(Document& document) 166 static RenderVideo* findFullscreenVideoRenderer(Document& document)
167 { 167 {
168 // Recursively find the document that is in fullscreen. 168 // Recursively find the document that is in fullscreen.
169 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); 169 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document);
170 Document* contentDocument = &document; 170 Document* contentDocument = &document;
171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { 171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) {
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 } else if (graphicsLayer == m_scrollLayer.get()) { 1164 } else if (graphicsLayer == m_scrollLayer.get()) {
1165 name = "LocalFrame Scrolling Layer"; 1165 name = "LocalFrame Scrolling Layer";
1166 } else { 1166 } else {
1167 ASSERT_NOT_REACHED(); 1167 ASSERT_NOT_REACHED();
1168 } 1168 }
1169 1169
1170 return name; 1170 return name;
1171 } 1171 }
1172 1172
1173 } // namespace blink 1173 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698