| Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
|
| index 09471226ed730b1212a0a63f8f678560277cc325..a6cb63b701718cba161deca000973e8c6ed272f9 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
| #include "platform/PlatformExport.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| +#include "platform/graphics/GraphicsLayerClient.h"
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/PtrUtil.h"
|
| #include "wtf/Vector.h"
|
| @@ -23,6 +25,9 @@ class Vector2dF;
|
|
|
| namespace blink {
|
|
|
| +class DisplayItemClient;
|
| +class IntRect;
|
| +class JSONObject;
|
| class PaintArtifact;
|
| class WebLayer;
|
| struct PaintChunk;
|
| @@ -64,6 +69,12 @@ public:
|
| void enableExtraDataForTesting() { m_extraDataForTestingEnabled = true; }
|
| ExtraDataForTesting* getExtraDataForTesting() const { return m_extraDataForTesting.get(); }
|
|
|
| + void setTracksPaintInvalidations(bool);
|
| + void resetTrackedPaintInvalidations();
|
| + bool hasTrackedPaintInvalidations() const;
|
| +
|
| + std::unique_ptr<JSONObject> layersAsJSON(LayerTreeFlags) const;
|
| +
|
| private:
|
| PaintArtifactCompositor();
|
|
|
| @@ -79,7 +90,7 @@ private:
|
|
|
| // Finds a client among the current vector of clients that matches the paint chunk's id,
|
| // or otherwise allocates a new one.
|
| - std::unique_ptr<ContentLayerClientImpl> clientForPaintChunk(const PaintChunk&);
|
| + std::unique_ptr<ContentLayerClientImpl> clientForPaintChunk(const PaintChunk&, const PaintArtifact&);
|
|
|
| scoped_refptr<cc::Layer> m_rootLayer;
|
| std::unique_ptr<WebLayer> m_webLayer;
|
| @@ -88,6 +99,8 @@ private:
|
| bool m_extraDataForTestingEnabled = false;
|
| std::unique_ptr<ExtraDataForTesting> m_extraDataForTesting;
|
| friend class StubChromeClientForSPv2;
|
| +
|
| + bool m_isTrackingPaintInvalidations;
|
| };
|
|
|
| } // namespace blink
|
|
|