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

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.h

Issue 2503193002: [SPv2] Refactor PaintArtifactorCompositor root node creation (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/testing/TestPaintArtifact.h
diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.h b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.h
index 746cddc5ce0d5db45db4cb689ff5e8af63ed3ae2..6c26971a0e281346610e6cbfbd6dbc1dd2fbbe7c 100644
--- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.h
+++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.h
@@ -9,6 +9,7 @@
#include "platform/graphics/Color.h"
#include "platform/graphics/paint/DisplayItemList.h"
#include "platform/graphics/paint/PaintArtifact.h"
+#include "platform/graphics/paint/ScrollPaintPropertyNode.h"
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
@@ -24,7 +25,6 @@ class ClipPaintPropertyNode;
class EffectPaintPropertyNode;
class FloatRect;
class PaintArtifact;
-class ScrollPaintPropertyNode;
class TransformPaintPropertyNode;
// Useful for quickly making a paint artifact in unit tests.
@@ -47,10 +47,11 @@ class TestPaintArtifact {
~TestPaintArtifact();
// Add to the artifact.
- TestPaintArtifact& chunk(PassRefPtr<TransformPaintPropertyNode>,
- PassRefPtr<ClipPaintPropertyNode>,
- PassRefPtr<EffectPaintPropertyNode>,
- PassRefPtr<ScrollPaintPropertyNode> = nullptr);
+ TestPaintArtifact& chunk(
+ PassRefPtr<TransformPaintPropertyNode>,
+ PassRefPtr<ClipPaintPropertyNode>,
+ PassRefPtr<EffectPaintPropertyNode>,
+ PassRefPtr<ScrollPaintPropertyNode> = ScrollPaintPropertyNode::root());
TestPaintArtifact& chunk(const PaintChunkProperties&);
TestPaintArtifact& rectDrawing(const FloatRect& bounds, Color);
TestPaintArtifact& foreignLayer(const FloatPoint&,
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698