Index: third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp |
index 88464d294527d7570529445b352ed84bfae8b962..0873d2c1e29044739894a3ab19e838fa29e77d48 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp |
@@ -17,7 +17,28 @@ namespace { |
// bots. |
#if defined(NDEBUG) || !OS(WIN) |
-static PaintChunkProperties rootPaintChunkProperties() { |
+TransformPaintPropertyNode* dummyRootTransform() { |
+ DEFINE_STATIC_REF(TransformPaintPropertyNode, rootTransform, |
+ (TransformPaintPropertyNode::create( |
+ nullptr, TransformationMatrix(), FloatPoint3D()))); |
+ return rootTransform; |
+} |
+ |
+ClipPaintPropertyNode* dummyRootClip() { |
+ DEFINE_STATIC_REF(ClipPaintPropertyNode, rootClip, |
+ (ClipPaintPropertyNode::create( |
+ nullptr, dummyRootTransform(), |
+ FloatRoundedRect(LayoutRect::infiniteIntRect())))); |
+ return rootClip; |
+} |
+ |
+EffectPaintPropertyNode* dummyRootEffect() { |
+ DEFINE_STATIC_REF(EffectPaintPropertyNode, rootEffect, |
+ (EffectPaintPropertyNode::create(nullptr, dummyRootTransform(), dummyRootClip(), 1.0, CompositorFilterOperations()))); |
+ return rootEffect; |
+} |
+ |
+PaintChunkProperties rootPaintChunkProperties() { |
return PaintChunkProperties(); |
} |
@@ -148,7 +169,7 @@ TEST_F(PaintChunkerTest, BuildMultipleChunksWithDifferentPropertyChanges) { |
PaintChunkProperties simpleTransformAndEffect; |
simpleTransformAndEffect.transform = simpleTransform.transform; |
simpleTransformAndEffect.effect = |
- EffectPaintPropertyNode::create(nullptr, 0.5f); |
+ EffectPaintPropertyNode::create(dummyRootEffect(), dummyRootTransform(), dummyRootClip(), 0.5f, CompositorFilterOperations()); |
chunker.updateCurrentPaintChunkProperties(nullptr, simpleTransformAndEffect); |
chunker.incrementDisplayItemIndex(NormalTestDisplayItem()); |
chunker.incrementDisplayItemIndex(NormalTestDisplayItem()); |
@@ -160,7 +181,7 @@ TEST_F(PaintChunkerTest, BuildMultipleChunksWithDifferentPropertyChanges) { |
FloatPoint3D(9, 8, 7)); |
simpleTransformAndEffectWithUpdatedTransform.effect = |
EffectPaintPropertyNode::create( |
- nullptr, simpleTransformAndEffect.effect->opacity()); |
+ dummyRootEffect(), dummyRootTransform(), dummyRootClip(), simpleTransformAndEffect.effect->opacity(), CompositorFilterOperations()); |
chunker.updateCurrentPaintChunkProperties( |
nullptr, simpleTransformAndEffectWithUpdatedTransform); |
chunker.incrementDisplayItemIndex(NormalTestDisplayItem()); |