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

Side by Side Diff: sky/engine/core/rendering/compositing/CompositingReasonFinder.h

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698