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

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

Issue 2506353002: Incrementally build main thread scrolling reasons [spv2] (Closed)
Patch Set: Cleanup comments 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 50dbc35122b1cbacc90d1971bad4da37e9a16689..cf4c7aca63cf70d0af6e2030b56cf273393f4c37 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, false, false);
TestPaintArtifact artifact;
artifact
@@ -671,16 +671,14 @@ 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(
- MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects);
+ IntSize(5, 7), false, true, false, true);
RefPtr<TransformPaintPropertyNode> scrollTranslationB =
TransformPaintPropertyNode::create(
scrollTranslationA, TransformationMatrix().translate(37, 41),
FloatPoint3D());
RefPtr<ScrollPaintPropertyNode> scrollB = ScrollPaintPropertyNode::create(
scrollA, scrollTranslationB, IntSize(19, 23), IntSize(29, 31), true,
- false);
+ false, false, false);
TestPaintArtifact artifact;
artifact
.chunk(scrollTranslationA, ClipPaintPropertyNode::root(), effect, scrollA)

Powered by Google App Engine
This is Rietveld 408576698