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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h

Issue 2652273004: Paint invisible layer content in presence of composited animations. (Closed)
Patch Set: Add tests and sync to head. Created 3 years, 10 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EffectPaintPropertyNode_h 5 #ifndef EffectPaintPropertyNode_h
6 #define EffectPaintPropertyNode_h 6 #define EffectPaintPropertyNode_h
7 7
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/graphics/CompositorElementId.h" 10 #include "platform/graphics/CompositorElementId.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 String toTreeString() const; 107 String toTreeString() const;
108 #endif 108 #endif
109 109
110 String toString() const; 110 String toString() const;
111 111
112 bool hasDirectCompositingReasons() const { 112 bool hasDirectCompositingReasons() const {
113 return m_directCompositingReasons != CompositingReasonNone; 113 return m_directCompositingReasons != CompositingReasonNone;
114 } 114 }
115 115
116 bool requiresCompositingForAnimation() const {
117 return m_directCompositingReasons & CompositingReasonActiveAnimation;
118 }
119
116 const CompositorElementId& compositorElementId() const { 120 const CompositorElementId& compositorElementId() const {
117 return m_compositorElementId; 121 return m_compositorElementId;
118 } 122 }
119 123
120 private: 124 private:
121 EffectPaintPropertyNode( 125 EffectPaintPropertyNode(
122 PassRefPtr<const EffectPaintPropertyNode> parent, 126 PassRefPtr<const EffectPaintPropertyNode> parent,
123 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, 127 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace,
124 PassRefPtr<const ClipPaintPropertyNode> outputClip, 128 PassRefPtr<const ClipPaintPropertyNode> outputClip,
125 CompositorFilterOperations filter, 129 CompositorFilterOperations filter,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 CompositorElementId m_compositorElementId; 170 CompositorElementId m_compositorElementId;
167 }; 171 };
168 172
169 // Redeclared here to avoid ODR issues. 173 // Redeclared here to avoid ODR issues.
170 // See platform/testing/PaintPrinters.h. 174 // See platform/testing/PaintPrinters.h.
171 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); 175 void PrintTo(const EffectPaintPropertyNode&, std::ostream*);
172 176
173 } // namespace blink 177 } // namespace blink
174 178
175 #endif // EffectPaintPropertyNode_h 179 #endif // EffectPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698