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 27 matching lines...) Expand all Loading... |
38 bool RequiresCompositingForScrollableFrame() const; | 38 bool RequiresCompositingForScrollableFrame() const; |
39 static bool RequiresCompositingForAnimation(const ComputedStyle&); | 39 static bool RequiresCompositingForAnimation(const ComputedStyle&); |
40 static bool RequiresCompositingForOpacityAnimation(const ComputedStyle&); | 40 static bool RequiresCompositingForOpacityAnimation(const ComputedStyle&); |
41 static bool RequiresCompositingForFilterAnimation(const ComputedStyle&); | 41 static bool RequiresCompositingForFilterAnimation(const ComputedStyle&); |
42 static bool RequiresCompositingForBackdropFilterAnimation( | 42 static bool RequiresCompositingForBackdropFilterAnimation( |
43 const ComputedStyle&); | 43 const ComputedStyle&); |
44 static bool RequiresCompositingForEffectAnimation(const ComputedStyle&); | 44 static bool RequiresCompositingForEffectAnimation(const ComputedStyle&); |
45 static bool RequiresCompositingForTransformAnimation(const ComputedStyle&); | 45 static bool RequiresCompositingForTransformAnimation(const ComputedStyle&); |
46 static bool RequiresCompositingForTransform(const LayoutObject&); | 46 static bool RequiresCompositingForTransform(const LayoutObject&); |
47 | 47 |
| 48 bool RequiresCompositingForScrollDependentPosition( |
| 49 const PaintLayer*, |
| 50 bool ignore_lcd_text) const; |
| 51 |
48 private: | 52 private: |
49 bool IsMainFrame() const; | 53 bool IsMainFrame() const; |
50 | 54 |
51 CompositingReasons NonStyleDeterminedDirectReasons( | 55 CompositingReasons NonStyleDeterminedDirectReasons( |
52 const PaintLayer*, | 56 const PaintLayer*, |
53 bool ignore_lcd_text) const; | 57 bool ignore_lcd_text) const; |
54 bool RequiresCompositingForScrollDependentPosition( | |
55 const PaintLayer*, | |
56 bool ignore_lcd_text) const; | |
57 | |
58 LayoutView& layout_view_; | 58 LayoutView& layout_view_; |
59 CompositingTriggerFlags compositing_triggers_; | 59 CompositingTriggerFlags compositing_triggers_; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // CompositingReasonFinder_h | 64 #endif // CompositingReasonFinder_h |
OLD | NEW |