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

Unified Diff: cc/test/fake_layer_tree_host_impl_client.h

Issue 2924233002: cc: Move pre-decodes to background worker. (Closed)
Patch Set: flake is flaky. T_T Created 3 years, 6 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/paint/draw_image.cc ('k') | cc/test/fake_layer_tree_host_impl_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host_impl_client.h
diff --git a/cc/test/fake_layer_tree_host_impl_client.h b/cc/test/fake_layer_tree_host_impl_client.h
index 78b2ed8d64ee5e691c0eafeb7a2a33b7e55f999e..9ed611bb83f0b365fcfb4dfa8c978ab6643a7446 100644
--- a/cc/test/fake_layer_tree_host_impl_client.h
+++ b/cc/test/fake_layer_tree_host_impl_client.h
@@ -17,8 +17,8 @@ class FakeLayerTreeHostImplClient : public LayerTreeHostImplClient {
void SetBeginFrameSource(BeginFrameSource* source) override {}
void DidReceiveCompositorFrameAckOnImplThread() override {}
void OnCanDrawStateChanged(bool can_draw) override {}
- void NotifyReadyToActivate() override {}
- void NotifyReadyToDraw() override {}
+ void NotifyReadyToActivate() override;
+ void NotifyReadyToDraw() override;
void SetNeedsRedrawOnImplThread() override {}
void SetNeedsOneBeginImplFrameOnImplThread() override {}
void SetNeedsCommitOnImplThread() override {}
@@ -46,8 +46,16 @@ class FakeLayerTreeHostImplClient : public LayerTreeHostImplClient {
return did_request_impl_side_invalidation_;
}
+ void reset_ready_to_activate() { ready_to_activate_ = false; }
+ bool ready_to_activate() const { return ready_to_activate_; }
+
+ void reset_ready_to_draw() { ready_to_draw_ = false; }
+ bool ready_to_draw() const { return ready_to_draw_; }
+
private:
bool did_request_impl_side_invalidation_ = false;
+ bool ready_to_activate_ = false;
+ bool ready_to_draw_ = false;
};
} // namespace cc
« no previous file with comments | « cc/paint/draw_image.cc ('k') | cc/test/fake_layer_tree_host_impl_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698