| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 return settings->layerSquashingEnabled(); | 284 return settings->layerSquashingEnabled(); |
| 285 | 285 |
| 286 return false; | 286 return false; |
| 287 } | 287 } |
| 288 | 288 |
| 289 bool RenderLayerCompositor::canRender3DTransforms() const | 289 bool RenderLayerCompositor::canRender3DTransforms() const |
| 290 { | 290 { |
| 291 return hasAcceleratedCompositing() && m_compositingReasonFinder.has3DTransfo
rmTrigger(); | 291 return hasAcceleratedCompositing() && m_compositingReasonFinder.has3DTransfo
rmTrigger(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void RenderLayerCompositor::setCompositingLayersNeedRebuild(bool needRebuild) | 294 void RenderLayerCompositor::setCompositingLayersNeedRebuild() |
| 295 { | 295 { |
| 296 // FIXME: crbug,com/332248 ideally this could be merged with setNeedsComposi
tingUpdate(). | 296 // FIXME: crbug,com/332248 ideally this could be merged with setNeedsComposi
tingUpdate(). |
| 297 if (inCompositingMode()) | 297 if (inCompositingMode()) |
| 298 m_compositingLayersNeedRebuild = needRebuild; | 298 m_compositingLayersNeedRebuild = true; |
| 299 | 299 |
| 300 m_renderView->frameView()->scheduleAnimation(); | 300 m_renderView->frameView()->scheduleAnimation(); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void RenderLayerCompositor::updateCompositingRequirementsState() | 303 void RenderLayerCompositor::updateCompositingRequirementsState() |
| 304 { | 304 { |
| 305 if (!m_needsUpdateCompositingRequirementsState) | 305 if (!m_needsUpdateCompositingRequirementsState) |
| 306 return; | 306 return; |
| 307 | 307 |
| 308 TRACE_EVENT0("blink_rendering,comp-scroll", "RenderLayerCompositor::updateCo
mpositingRequirementsState"); | 308 TRACE_EVENT0("blink_rendering,comp-scroll", "RenderLayerCompositor::updateCo
mpositingRequirementsState"); |
| (...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 } else if (graphicsLayer == m_scrollLayer.get()) { | 2405 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 2406 name = "LocalFrame Scrolling Layer"; | 2406 name = "LocalFrame Scrolling Layer"; |
| 2407 } else { | 2407 } else { |
| 2408 ASSERT_NOT_REACHED(); | 2408 ASSERT_NOT_REACHED(); |
| 2409 } | 2409 } |
| 2410 | 2410 |
| 2411 return name; | 2411 return name; |
| 2412 } | 2412 } |
| 2413 | 2413 |
| 2414 } // namespace WebCore | 2414 } // namespace WebCore |
| OLD | NEW |