| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SKY_ENGINE_CORE_RENDERING_COMPOSITING_COMPOSITINGREASONFINDER_H_ | |
| 6 #define SKY_ENGINE_CORE_RENDERING_COMPOSITING_COMPOSITINGREASONFINDER_H_ | |
| 7 | |
| 8 #include "sky/engine/core/rendering/RenderLayer.h" | |
| 9 #include "sky/engine/core/rendering/compositing/CompositingTriggers.h" | |
| 10 #include "sky/engine/platform/graphics/CompositingReasons.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class RenderObject; | |
| 15 class RenderView; | |
| 16 | |
| 17 class CompositingReasonFinder { | |
| 18 WTF_MAKE_NONCOPYABLE(CompositingReasonFinder); | |
| 19 public: | |
| 20 explicit CompositingReasonFinder(RenderView&); | |
| 21 | |
| 22 CompositingReasons potentialCompositingReasonsFromStyle(RenderObject*) const
; | |
| 23 CompositingReasons directReasons(const RenderLayer*) const; | |
| 24 | |
| 25 void updateTriggers(); | |
| 26 | |
| 27 bool hasOverflowScrollTrigger() const; | |
| 28 bool requiresCompositingForScrollableFrame() const; | |
| 29 | |
| 30 private: | |
| 31 CompositingReasons nonStyleDeterminedDirectReasons(const RenderLayer*) const
; | |
| 32 | |
| 33 bool requiresCompositingForTransform(RenderObject*) const; | |
| 34 bool requiresCompositingForAnimation(RenderStyle*) const; | |
| 35 | |
| 36 RenderView& m_renderView; | |
| 37 CompositingTriggerFlags m_compositingTriggers; | |
| 38 }; | |
| 39 | |
| 40 } // namespace blink | |
| 41 | |
| 42 #endif // SKY_ENGINE_CORE_RENDERING_COMPOSITING_COMPOSITINGREASONFINDER_H_ | |
| OLD | NEW |