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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: remove include 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
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b6e88cf779ee7016bb745228767b20c809e5976..ca7a96a1f2805e76dca4f8859a4cced4f6c04e86 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,11 @@ class CC_EXPORT LayerTreeHostImpl
void AnimateInternal(bool active_tree);
+ // 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();
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698