Chromium Code Reviews| 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 37f1306110fe427509ac97d7469cd7462cb8ae28..8fa31ef2a03297565d812de2ce176d093054341f 100644 |
| --- a/cc/trees/layer_tree_host_impl.h |
| +++ b/cc/trees/layer_tree_host_impl.h |
| @@ -235,6 +235,7 @@ class CC_EXPORT LayerTreeHostImpl |
| DISALLOW_COPY_AND_ASSIGN(FrameData); |
| }; |
| + virtual void DidSendBeginMainFrame() {} // For Tests. |
|
enne (OOO)
2017/02/24 20:43:57
I think either name this DidSendBeginMainFrameForT
Khushal
2017/02/24 23:19:41
Done, I added ForTesting there. Can't make it prot
|
| virtual void BeginMainFrameAborted( |
| CommitEarlyOutReason reason, |
| std::vector<std::unique_ptr<SwapPromise>> swap_promises); |
| @@ -253,7 +254,8 @@ class CC_EXPORT LayerTreeHostImpl |
| // Analogous to a commit, this function is used to create a sync tree and |
| // add impl-side invalidations to it. |
| - void InvalidateContentOnImplSide(); |
| + // virtual for testing. |
| + virtual void InvalidateContentOnImplSide(); |
| void SetTreeLayerFilterMutated(ElementId element_id, |
| LayerTreeImpl* tree, |
| @@ -318,6 +320,10 @@ class CC_EXPORT LayerTreeHostImpl |
| // immediately if any notifications had been blocked while blocking. |
| virtual void BlockNotifyReadyToActivateForTesting(bool block); |
| + // Prevents notifying the |client_| when an impl side invalidation request is |
| + // made. When unblocked, the disabled request will immediately be called. |
| + virtual void BlockImplSideInvalidationRequestsForTesting(bool block); |
| + |
| // Resets all of the trees to an empty state. |
| void ResetTreesForTesting(); |