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

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

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 years, 7 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/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/input/browser_controls_state.h" 10 #include "cc/input/browser_controls_state.h"
(...skipping 24 matching lines...) Expand all
35 // we decide that no further processing is necessary. 35 // we decide that no further processing is necessary.
36 enum CommitPipelineStage { 36 enum CommitPipelineStage {
37 NO_PIPELINE_STAGE, 37 NO_PIPELINE_STAGE,
38 ANIMATE_PIPELINE_STAGE, 38 ANIMATE_PIPELINE_STAGE,
39 UPDATE_LAYERS_PIPELINE_STAGE, 39 UPDATE_LAYERS_PIPELINE_STAGE,
40 COMMIT_PIPELINE_STAGE, 40 COMMIT_PIPELINE_STAGE,
41 }; 41 };
42 42
43 void DidReceiveCompositorFrameAck(); 43 void DidReceiveCompositorFrameAck();
44 void BeginMainFrameNotExpectedSoon(); 44 void BeginMainFrameNotExpectedSoon();
45 void BeginMainFrameNotExpectedUntil(base::TimeTicks time);
45 void DidCommitAndDrawFrame(); 46 void DidCommitAndDrawFrame();
46 void SetAnimationEvents(std::unique_ptr<MutatorEvents> events); 47 void SetAnimationEvents(std::unique_ptr<MutatorEvents> events);
47 void DidLoseCompositorFrameSink(); 48 void DidLoseCompositorFrameSink();
48 void RequestNewCompositorFrameSink(); 49 void RequestNewCompositorFrameSink();
49 void DidInitializeCompositorFrameSink(bool success); 50 void DidInitializeCompositorFrameSink(bool success);
50 void DidCompletePageScaleAnimation(); 51 void DidCompletePageScaleAnimation();
51 void BeginMainFrame( 52 void BeginMainFrame(
52 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); 53 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state);
53 54
54 CommitPipelineStage max_requested_pipeline_stage() const { 55 CommitPipelineStage max_requested_pipeline_stage() const {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 base::WeakPtrFactory<ProxyMain> frame_sink_bound_weak_factory_; 135 base::WeakPtrFactory<ProxyMain> frame_sink_bound_weak_factory_;
135 136
136 base::WeakPtrFactory<ProxyMain> weak_factory_; 137 base::WeakPtrFactory<ProxyMain> weak_factory_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(ProxyMain); 139 DISALLOW_COPY_AND_ASSIGN(ProxyMain);
139 }; 140 };
140 141
141 } // namespace cc 142 } // namespace cc
142 143
143 #endif // CC_TREES_PROXY_MAIN_H_ 144 #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