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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp

Issue 2506353002: Incrementally build main thread scrolling reasons [spv2] (Closed)
Patch Set: Fix test mistake Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
index 89d73de13a37ac4712f28159e46b52840576da5e..7f49c85c95a555c9acef07a001ca1cfa2fa00326 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
@@ -629,7 +629,7 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, OneScrollNode) {
FloatPoint3D());
RefPtr<ScrollPaintPropertyNode> scroll = ScrollPaintPropertyNode::create(
ScrollPaintPropertyNode::root(), scrollTranslation, IntSize(11, 13),
- IntSize(27, 31), true, false);
+ IntSize(27, 31), true, false, 0);
TestPaintArtifact artifact;
artifact
@@ -671,8 +671,7 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, NestedScrollNodes) {
TransformationMatrix().translate(11, 13), FloatPoint3D());
RefPtr<ScrollPaintPropertyNode> scrollA = ScrollPaintPropertyNode::create(
ScrollPaintPropertyNode::root(), scrollTranslationA, IntSize(2, 3),
- IntSize(5, 7), false, true);
- scrollA->addMainThreadScrollingReasons(
+ IntSize(5, 7), false, true,
MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects);
RefPtr<TransformPaintPropertyNode> scrollTranslationB =
TransformPaintPropertyNode::create(
@@ -680,7 +679,7 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, NestedScrollNodes) {
FloatPoint3D());
RefPtr<ScrollPaintPropertyNode> scrollB = ScrollPaintPropertyNode::create(
scrollA, scrollTranslationB, IntSize(19, 23), IntSize(29, 31), true,
- false);
+ false, 0);
TestPaintArtifact artifact;
artifact
.chunk(scrollTranslationA, ClipPaintPropertyNode::root(), effect, scrollA)

Powered by Google App Engine
This is Rietveld 408576698