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

Side by Side Diff: cc/trees/proxy_main.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_impl.cc ('k') | cc/trees/proxy_main.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_MAIN_H_ 5 #ifndef CC_TREES_PROXY_MAIN_H_
6 #define CC_TREES_PROXY_MAIN_H_ 6 #define CC_TREES_PROXY_MAIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/input/browser_controls_state.h" 10 #include "cc/input/browser_controls_state.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void MainThreadHasStoppedFlinging() override; 79 void MainThreadHasStoppedFlinging() override;
80 void Start() override; 80 void Start() override;
81 void Stop() override; 81 void Stop() override;
82 bool SupportsImplScrolling() const override; 82 bool SupportsImplScrolling() const override;
83 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; 83 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override;
84 bool MainFrameWillHappenForTesting() override; 84 bool MainFrameWillHappenForTesting() override;
85 void ReleaseCompositorFrameSink() override; 85 void ReleaseCompositorFrameSink() override;
86 void UpdateBrowserControlsState(BrowserControlsState constraints, 86 void UpdateBrowserControlsState(BrowserControlsState constraints,
87 BrowserControlsState current, 87 BrowserControlsState current,
88 bool animate) override; 88 bool animate) override;
89 void ResetTrees() override;
89 90
90 // Returns |true| if the request was actually sent, |false| if one was 91 // Returns |true| if the request was actually sent, |false| if one was
91 // already outstanding. 92 // already outstanding.
92 bool SendCommitRequestToImplThreadIfNeeded( 93 bool SendCommitRequestToImplThreadIfNeeded(
93 CommitPipelineStage required_stage); 94 CommitPipelineStage required_stage);
94 bool IsMainThread() const; 95 bool IsMainThread() const;
95 bool IsImplThread() const; 96 bool IsImplThread() const;
96 base::SingleThreadTaskRunner* ImplThreadTaskRunner(); 97 base::SingleThreadTaskRunner* ImplThreadTaskRunner();
97 98
98 void InitializeOnImplThread(CompletionEvent* completion_event); 99 void InitializeOnImplThread(CompletionEvent* completion_event);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::unique_ptr<ProxyImpl> proxy_impl_; 131 std::unique_ptr<ProxyImpl> proxy_impl_;
131 132
132 base::WeakPtrFactory<ProxyMain> weak_factory_; 133 base::WeakPtrFactory<ProxyMain> weak_factory_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(ProxyMain); 135 DISALLOW_COPY_AND_ASSIGN(ProxyMain);
135 }; 136 };
136 137
137 } // namespace cc 138 } // namespace cc
138 139
139 #endif // CC_TREES_PROXY_MAIN_H_ 140 #endif // CC_TREES_PROXY_MAIN_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/proxy_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698