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

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

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 void RenderLayerCompositor::updateAcceleratedCompositingSettings() 148 void RenderLayerCompositor::updateAcceleratedCompositingSettings()
149 { 149 {
150 m_compositingReasonFinder.updateTriggers(); 150 m_compositingReasonFinder.updateTriggers();
151 m_hasAcceleratedCompositing = m_renderView.document().settings()->accelerate dCompositingEnabled(); 151 m_hasAcceleratedCompositing = m_renderView.document().settings()->accelerate dCompositingEnabled();
152 m_rootShouldAlwaysCompositeDirty = true; 152 m_rootShouldAlwaysCompositeDirty = true;
153 if (m_rootLayerAttachment != RootLayerUnattached) 153 if (m_rootLayerAttachment != RootLayerUnattached)
154 rootRenderLayer()->setNeedsCompositingInputsUpdate(); 154 rootRenderLayer()->setNeedsCompositingInputsUpdate();
155 } 155 }
156 156
157 bool RenderLayerCompositor::layerSquashingEnabled() const
158 {
159 if (!RuntimeEnabledFeatures::layerSquashingEnabled())
160 return false;
161 if (Settings* settings = m_renderView.document().settings())
162 return settings->layerSquashingEnabled();
163 return true;
164 }
165
166 bool RenderLayerCompositor::preferCompositingToLCDTextEnabled() const 157 bool RenderLayerCompositor::preferCompositingToLCDTextEnabled() const
167 { 158 {
168 return m_compositingReasonFinder.hasOverflowScrollTrigger(); 159 return m_compositingReasonFinder.hasOverflowScrollTrigger();
169 } 160 }
170 161
171 static RenderVideo* findFullscreenVideoRenderer(Document& document) 162 static RenderVideo* findFullscreenVideoRenderer(Document& document)
172 { 163 {
173 // Recursively find the document that is in fullscreen. 164 // Recursively find the document that is in fullscreen.
174 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); 165 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document);
175 Document* contentDocument = &document; 166 Document* contentDocument = &document;
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 } else if (graphicsLayer == m_scrollLayer.get()) { 1184 } else if (graphicsLayer == m_scrollLayer.get()) {
1194 name = "LocalFrame Scrolling Layer"; 1185 name = "LocalFrame Scrolling Layer";
1195 } else { 1186 } else {
1196 ASSERT_NOT_REACHED(); 1187 ASSERT_NOT_REACHED();
1197 } 1188 }
1198 1189
1199 return name; 1190 return name;
1200 } 1191 }
1201 1192
1202 } // namespace blink 1193 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.h ('k') | Source/core/testing/InternalSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698