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

Side by Side Diff: cc/trees/proxy_impl.h

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon 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 unified diff | Download patch
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 CommitEarlyOutReason reason, 45 CommitEarlyOutReason reason,
46 base::TimeTicks main_thread_start_time, 46 base::TimeTicks main_thread_start_time,
47 std::vector<std::unique_ptr<SwapPromise>> swap_promises); 47 std::vector<std::unique_ptr<SwapPromise>> swap_promises);
48 void SetVisibleOnImpl(bool visible); 48 void SetVisibleOnImpl(bool visible);
49 void ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion); 49 void ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion);
50 void FinishGLOnImpl(CompletionEvent* completion); 50 void FinishGLOnImpl(CompletionEvent* completion);
51 void NotifyReadyToCommitOnImpl(CompletionEvent* completion, 51 void NotifyReadyToCommitOnImpl(CompletionEvent* completion,
52 LayerTreeHost* layer_tree_host, 52 LayerTreeHost* layer_tree_host,
53 base::TimeTicks main_thread_start_time, 53 base::TimeTicks main_thread_start_time,
54 bool hold_commit_for_activation); 54 bool hold_commit_for_activation);
55 void ResetTrees();
55 56
56 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion, 57 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion,
57 bool* main_frame_will_happen); 58 bool* main_frame_will_happen);
58 59
59 private: 60 private:
60 // The members of this struct should be accessed on the impl thread only when 61 // The members of this struct should be accessed on the impl thread only when
61 // the main thread is blocked for a commit. 62 // the main thread is blocked for a commit.
62 struct BlockedMainCommitOnly { 63 struct BlockedMainCommitOnly {
63 BlockedMainCommitOnly(); 64 BlockedMainCommitOnly();
64 ~BlockedMainCommitOnly(); 65 ~BlockedMainCommitOnly();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 // Used to post tasks to ProxyMain on the main thread. 146 // Used to post tasks to ProxyMain on the main thread.
146 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_; 147 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 149 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
149 }; 150 };
150 151
151 } // namespace cc 152 } // namespace cc
152 153
153 #endif // CC_TREES_PROXY_IMPL_H_ 154 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698