OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |