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

Unified Diff: cc/trees/single_thread_proxy.h

Issue 2757373002: Fixing flakiness of TextureLayerChangeInvisibleMailboxTest (Closed)
Patch Set: c Created 3 years, 8 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/trees/proxy_main.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.h
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h
index 4a091950a27cc9bb1c4a73695827c70a40ece935..4cbb14a00e49e4217918741088efaa181c69c2f0 100644
--- a/cc/trees/single_thread_proxy.h
+++ b/cc/trees/single_thread_proxy.h
@@ -122,6 +122,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
bool ShouldComposite() const;
void ScheduleRequestNewCompositorFrameSink();
+ void DidReceiveCompositorFrameAck();
+
// Accessed on main thread only.
LayerTreeHost* layer_tree_host_;
LayerTreeHostSingleThreadClient* single_thread_client_;
@@ -158,6 +160,12 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
// This is the callback for the scheduled RequestNewCompositorFrameSink.
base::CancelableClosure compositor_frame_sink_creation_callback_;
+ base::WeakPtr<SingleThreadProxy> frame_sink_bound_weak_ptr_;
+
+ // WeakPtrs generated by this factory will be invalidated when
+ // CompositorFrameSink is released.
+ base::WeakPtrFactory<SingleThreadProxy> frame_sink_bound_weak_factory_;
+
base::WeakPtrFactory<SingleThreadProxy> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SingleThreadProxy);
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698