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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Rebase Created 3 years, 10 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: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index a296fc9154d1e70bbab4925aaa1d52d0e5ee9ae2..0594def6dd31a4761d9e87267c2d9782fcac4ea9 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -121,6 +121,8 @@ class LayerTreeHostImplClient {
virtual void OnDrawForCompositorFrameSink(
bool resourceless_software_draw) = 0;
+ virtual void NeedsImplSideInvalidation() = 0;
+
protected:
virtual ~LayerTreeHostImplClient() {}
};
@@ -249,6 +251,10 @@ class CC_EXPORT LayerTreeHostImpl
void SetFullViewportDamage();
void SetViewportDamage(const gfx::Rect& damage_rect);
+ // Analogous to a commit, this function is used to create a sync tree and
+ // add impl-side invalidations to it.
+ void InvalidateContentOnImplSide();
+
void SetTreeLayerFilterMutated(ElementId element_id,
LayerTreeImpl* tree,
const FilterOperations& filters);
@@ -343,6 +349,7 @@ class CC_EXPORT LayerTreeHostImpl
TreePriority tree_priority) override;
void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override;
gfx::ColorSpace GetTileColorSpace() const override;
+ void RequestImplSideInvalidation() override;
// ScrollbarAnimationControllerClient implementation.
void PostDelayedScrollbarAnimationTask(const base::Closure& task,
@@ -629,6 +636,13 @@ class CC_EXPORT LayerTreeHostImpl
void AnimateInternal(bool active_tree);
+ void AddImplSideInvalidationToSyncTree();
+
+ // The function is called to update state on the sync tree after a commit
+ // finishes or after the sync tree was created to invalidate content on the
+ // impl thread.
+ void UpdateSyncTreeAfterCommitOrImplSideInvalidation();
+
// Returns true if status changed.
bool UpdateGpuRasterizationStatus();
void UpdateTreeResourcesForGpuRasterizationIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698