summaryrefslogtreecommitdiffstats
path: root/cc/layers/layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/layer.h')
-rw-r--r--cc/layers/layer.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 2f4d581..7a8f9d1 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -397,13 +397,6 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
- // In impl-side painting, this returns true if this layer type is not
- // compatible with the main thread running freely, such as a double-buffered
- // canvas that doesn't want to be triple-buffered across all three trees.
- virtual bool BlocksPendingCommit() const;
- // Returns true if anything in this tree blocksPendingCommit.
- bool BlocksPendingCommitRecursive() const;
-
virtual skia::RefPtr<SkPicture> GetPicture() const;
virtual bool CanClipSelf() const;
@@ -455,7 +448,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// Called when there's been a change in layer structure. Implies both
// SetNeedsUpdate and SetNeedsCommit, but not SetNeedsPushProperties.
void SetNeedsFullTreeSync();
- bool IsPropertyChangeAllowed() const;
+
+ // Called when the next commit should wait until the pending tree is activated
+ // before finishing the commit and unblocking the main thread. Used to ensure
+ // unused resources on the impl thread are returned before commit completes.
+ void SetNextCommitWaitsForActivation();
void SetNeedsPushProperties();
void AddDependentNeedsPushProperties();
@@ -464,6 +461,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
return needs_push_properties() || descendant_needs_push_properties();
}
+ bool IsPropertyChangeAllowed() const;
+
// If this layer has a scroll parent, it removes |this| from its list of
// scroll children.
void RemoveFromScrollTree();