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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h

Issue 2795263002: Add a new document lifecycle; CompositingInputsClean (Closed)
Patch Set: Rebase Created 3 years, 8 months 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/core/layout/compositing/PaintLayerCompositor.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
index 23118560d9e6556ac68fafff5339ca6514c1313e..b3916f768762d27256e2c3ad0cd547d989a6b415 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
@@ -28,6 +28,7 @@
#include <memory>
#include "core/CoreExport.h"
+#include "core/dom/DocumentLifecycle.h"
#include "core/layout/compositing/CompositingReasonFinder.h"
#include "platform/graphics/GraphicsLayerClient.h"
#include "platform/wtf/HashMap.h"
@@ -35,7 +36,6 @@
namespace blink {
class PaintLayer;
-class DocumentLifecycle;
class GraphicsLayer;
class IntPoint;
class JSONObject;
@@ -77,7 +77,7 @@ class CORE_EXPORT PaintLayerCompositor final : public GraphicsLayerClient {
explicit PaintLayerCompositor(LayoutView&);
~PaintLayerCompositor() override;
- void UpdateIfNeededRecursive();
+ void UpdateIfNeededRecursive(DocumentLifecycle::LifecycleState target_state);
// Return true if this LayoutView is in "compositing mode" (i.e. has one or
// more composited Layers)
@@ -193,7 +193,8 @@ class CORE_EXPORT PaintLayerCompositor final : public GraphicsLayerClient {
void AssertNoUnresolvedDirtyBits();
#endif
- void UpdateIfNeededRecursiveInternal();
+ void UpdateIfNeededRecursiveInternal(
+ DocumentLifecycle::LifecycleState target_state);
// GraphicsLayerClient implementation
bool NeedsRepaint(const GraphicsLayer&) const { return true; }
@@ -207,7 +208,7 @@ class CORE_EXPORT PaintLayerCompositor final : public GraphicsLayerClient {
bool IsTrackingRasterInvalidations() const override;
void UpdateWithoutAcceleratedCompositing(CompositingUpdateType);
- void UpdateIfNeeded();
+ void UpdateIfNeeded(DocumentLifecycle::LifecycleState target_state);
void EnsureRootLayer();
void DestroyRootLayer();

Powered by Google App Engine
This is Rietveld 408576698