Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.h

Issue 2571043002: Set a direct compositing reason for 3D transform & will-change property tree nodes (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/layout/compositing/CompositingTriggers.h" 8 #include "core/layout/compositing/CompositingTriggers.h"
9 #include "platform/graphics/CompositingReasons.h" 9 #include "platform/graphics/CompositingReasons.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 explicit CompositingReasonFinder(LayoutView&); 25 explicit CompositingReasonFinder(LayoutView&);
26 26
27 CompositingReasons potentialCompositingReasonsFromStyle(LayoutObject*) const; 27 CompositingReasons potentialCompositingReasonsFromStyle(LayoutObject*) const;
28 CompositingReasons directReasons(const PaintLayer*) const; 28 CompositingReasons directReasons(const PaintLayer*) const;
29 29
30 void updateTriggers(); 30 void updateTriggers();
31 31
32 bool hasOverflowScrollTrigger() const; 32 bool hasOverflowScrollTrigger() const;
33 bool requiresCompositingForScrollableFrame() const; 33 bool requiresCompositingForScrollableFrame() const;
34 bool requiresCompositingForAnimation(const ComputedStyle&) const; 34 static bool requiresCompositingForAnimation(const ComputedStyle&);
35 static bool requiresCompositingForTransform(const LayoutObject&);
35 36
36 private: 37 private:
37 bool isMainFrame() const; 38 bool isMainFrame() const;
38 39
39 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const; 40 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const;
40
41 bool requiresCompositingForTransform(LayoutObject*) const;
42 bool requiresCompositingForScrollDependentPosition(const PaintLayer*) const; 41 bool requiresCompositingForScrollDependentPosition(const PaintLayer*) const;
43 42
44 LayoutView& m_layoutView; 43 LayoutView& m_layoutView;
45 CompositingTriggerFlags m_compositingTriggers; 44 CompositingTriggerFlags m_compositingTriggers;
46 }; 45 };
47 46
48 } // namespace blink 47 } // namespace blink
49 48
50 #endif // CompositingReasonFinder_h 49 #endif // CompositingReasonFinder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698