| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "core/rendering/compositing/CompositingReasonFinder.h" | 6 #include "sky/engine/core/rendering/compositing/CompositingReasonFinder.h" |
| 7 | 7 |
| 8 #include "gen/sky/core/CSSPropertyNames.h" | 8 #include "gen/sky/core/CSSPropertyNames.h" |
| 9 #include "core/dom/Document.h" | 9 #include "sky/engine/core/dom/Document.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "sky/engine/core/frame/FrameView.h" |
| 11 #include "core/frame/Settings.h" | 11 #include "sky/engine/core/frame/Settings.h" |
| 12 #include "core/page/Page.h" | 12 #include "sky/engine/core/page/Page.h" |
| 13 #include "core/rendering/RenderView.h" | 13 #include "sky/engine/core/rendering/RenderView.h" |
| 14 #include "core/rendering/compositing/RenderLayerCompositor.h" | 14 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 CompositingReasonFinder::CompositingReasonFinder(RenderView& renderView) | 18 CompositingReasonFinder::CompositingReasonFinder(RenderView& renderView) |
| 19 : m_renderView(renderView) | 19 : m_renderView(renderView) |
| 20 , m_compositingTriggers(static_cast<CompositingTriggerFlags>(AllCompositingT
riggers)) | 20 , m_compositingTriggers(static_cast<CompositingTriggerFlags>(AllCompositingT
riggers)) |
| 21 { | 21 { |
| 22 updateTriggers(); | 22 updateTriggers(); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 bool CompositingReasonFinder::requiresCompositingForAnimation(RenderStyle* style
) const | 133 bool CompositingReasonFinder::requiresCompositingForAnimation(RenderStyle* style
) const |
| 134 { | 134 { |
| 135 if (style->subtreeWillChangeContents()) | 135 if (style->subtreeWillChangeContents()) |
| 136 return style->isRunningAnimationOnCompositor(); | 136 return style->isRunningAnimationOnCompositor(); |
| 137 | 137 |
| 138 return style->shouldCompositeForCurrentAnimations(); | 138 return style->shouldCompositeForCurrentAnimations(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 } | 141 } |
| OLD | NEW |