| 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 #ifndef CompositingReasonFinder_h | 5 #ifndef CompositingReasonFinder_h |
| 6 #define CompositingReasonFinder_h | 6 #define CompositingReasonFinder_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/layout/compositing/CompositingTriggers.h" | 9 #include "core/layout/compositing/CompositingTriggers.h" |
| 10 #include "platform/graphics/CompositingReasons.h" | 10 #include "platform/graphics/CompositingReasons.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 explicit CompositingReasonFinder(LayoutView&); | 26 explicit CompositingReasonFinder(LayoutView&); |
| 27 | 27 |
| 28 CompositingReasons potentialCompositingReasonsFromStyle(LayoutObject*) const; | 28 CompositingReasons potentialCompositingReasonsFromStyle(LayoutObject*) const; |
| 29 CompositingReasons directReasons(const PaintLayer*) const; | 29 CompositingReasons directReasons(const PaintLayer*) const; |
| 30 | 30 |
| 31 void updateTriggers(); | 31 void updateTriggers(); |
| 32 | 32 |
| 33 bool hasOverflowScrollTrigger() const; | 33 bool hasOverflowScrollTrigger() const; |
| 34 bool requiresCompositingForScrollableFrame() const; | 34 bool requiresCompositingForScrollableFrame() const; |
| 35 static bool requiresCompositingForAnimation(const ComputedStyle&); | 35 static bool requiresCompositingForAnimation(const ComputedStyle&); |
| 36 static bool requiresCompositingForEffectAnimation(const ComputedStyle&); |
| 36 static bool requiresCompositingForTransformAnimation(const ComputedStyle&); | 37 static bool requiresCompositingForTransformAnimation(const ComputedStyle&); |
| 37 static bool requiresCompositingForTransform(const LayoutObject&); | 38 static bool requiresCompositingForTransform(const LayoutObject&); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 bool isMainFrame() const; | 41 bool isMainFrame() const; |
| 41 | 42 |
| 42 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const; | 43 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const; |
| 43 bool requiresCompositingForScrollDependentPosition(const PaintLayer*) const; | 44 bool requiresCompositingForScrollDependentPosition(const PaintLayer*) const; |
| 44 | 45 |
| 45 LayoutView& m_layoutView; | 46 LayoutView& m_layoutView; |
| 46 CompositingTriggerFlags m_compositingTriggers; | 47 CompositingTriggerFlags m_compositingTriggers; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace blink | 50 } // namespace blink |
| 50 | 51 |
| 51 #endif // CompositingReasonFinder_h | 52 #endif // CompositingReasonFinder_h |
| OLD | NEW |