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

Side by Side Diff: cc/scheduler/compositor_timing_history.h

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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/output/compositor_frame_sink_unittest.cc ('k') | cc/scheduler/compositor_timing_history.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 5 #ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void WillPrepareTiles(); 64 void WillPrepareTiles();
65 void DidPrepareTiles(); 65 void DidPrepareTiles();
66 void ReadyToActivate(); 66 void ReadyToActivate();
67 void WillActivate(); 67 void WillActivate();
68 void DidActivate(); 68 void DidActivate();
69 void DrawAborted(); 69 void DrawAborted();
70 void WillDraw(); 70 void WillDraw();
71 void DidDraw(bool used_new_active_tree, 71 void DidDraw(bool used_new_active_tree,
72 bool main_thread_missed_last_deadline, 72 bool main_thread_missed_last_deadline,
73 base::TimeTicks impl_frame_time); 73 base::TimeTicks impl_frame_time);
74 void DidSwapBuffers(); 74 void DidSubmitCompositorFrame();
75 void DidSwapBuffersComplete(); 75 void DidReceiveCompositorFrameAck();
76 76
77 protected: 77 protected:
78 void DidBeginMainFrame(); 78 void DidBeginMainFrame();
79 79
80 void SetBeginMainFrameNeededContinuously(bool active); 80 void SetBeginMainFrameNeededContinuously(bool active);
81 void SetBeginMainFrameCommittingContinuously(bool active); 81 void SetBeginMainFrameCommittingContinuously(bool active);
82 void SetCompositorDrawingContinuously(bool active); 82 void SetCompositorDrawingContinuously(bool active);
83 83
84 static std::unique_ptr<UMAReporter> CreateUMAReporter(UMACategory category); 84 static std::unique_ptr<UMAReporter> CreateUMAReporter(UMACategory category);
85 virtual base::TimeTicks Now() const; 85 virtual base::TimeTicks Now() const;
(...skipping 22 matching lines...) Expand all
108 bool begin_main_frame_on_critical_path_; 108 bool begin_main_frame_on_critical_path_;
109 base::TimeTicks begin_main_frame_frame_time_; 109 base::TimeTicks begin_main_frame_frame_time_;
110 base::TimeTicks begin_main_frame_sent_time_; 110 base::TimeTicks begin_main_frame_sent_time_;
111 base::TimeTicks begin_main_frame_start_time_; 111 base::TimeTicks begin_main_frame_start_time_;
112 base::TimeTicks begin_main_frame_end_time_; 112 base::TimeTicks begin_main_frame_end_time_;
113 base::TimeTicks pending_tree_main_frame_time_; 113 base::TimeTicks pending_tree_main_frame_time_;
114 base::TimeTicks prepare_tiles_start_time_; 114 base::TimeTicks prepare_tiles_start_time_;
115 base::TimeTicks activate_start_time_; 115 base::TimeTicks activate_start_time_;
116 base::TimeTicks active_tree_main_frame_time_; 116 base::TimeTicks active_tree_main_frame_time_;
117 base::TimeTicks draw_start_time_; 117 base::TimeTicks draw_start_time_;
118 base::TimeTicks swap_start_time_; 118 base::TimeTicks submit_start_time_;
119 119
120 // Watchdog timers. 120 // Watchdog timers.
121 bool swap_ack_watchdog_enabled_; 121 bool submit_ack_watchdog_enabled_;
122 122
123 std::unique_ptr<UMAReporter> uma_reporter_; 123 std::unique_ptr<UMAReporter> uma_reporter_;
124 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 124 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
125 125
126 private: 126 private:
127 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); 127 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory);
128 }; 128 };
129 129
130 } // namespace cc 130 } // namespace cc
131 131
132 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 132 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_sink_unittest.cc ('k') | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698