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

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

Issue 2712983003: [cc] Set BeginFrame sequence numbers on CompositorFrames from Scheduler. (Closed)
Patch Set: sync 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_SCHEDULER_STATE_MACHINE_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool CouldSendBeginMainFrame() const; 272 bool CouldSendBeginMainFrame() const;
273 273
274 void SetDeferCommits(bool defer_commits); 274 void SetDeferCommits(bool defer_commits);
275 275
276 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); 276 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
277 bool video_needs_begin_frames() const { return video_needs_begin_frames_; } 277 bool video_needs_begin_frames() const { return video_needs_begin_frames_; }
278 278
279 bool did_submit_in_last_frame() const { return did_submit_in_last_frame_; } 279 bool did_submit_in_last_frame() const { return did_submit_in_last_frame_; }
280 280
281 uint32_t begin_frame_source_id() const { return begin_frame_source_id_; } 281 uint32_t begin_frame_source_id() const { return begin_frame_source_id_; }
282 uint64_t last_begin_frame_sequence_number_active_tree_was_fresh() const {
283 return last_begin_frame_sequence_number_active_tree_was_fresh_;
284 }
282 uint64_t last_begin_frame_sequence_number_compositor_frame_was_fresh() const { 285 uint64_t last_begin_frame_sequence_number_compositor_frame_was_fresh() const {
283 return last_begin_frame_sequence_number_compositor_frame_was_fresh_; 286 return last_begin_frame_sequence_number_compositor_frame_was_fresh_;
284 } 287 }
285 288
286 protected: 289 protected:
287 bool BeginFrameRequiredForAction() const; 290 bool BeginFrameRequiredForAction() const;
288 bool BeginFrameNeededForVideo() const; 291 bool BeginFrameNeededForVideo() const;
289 bool ProactiveBeginFrameWanted() const; 292 bool ProactiveBeginFrameWanted() const;
290 293
291 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; 294 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 bool did_draw_in_last_frame_; 376 bool did_draw_in_last_frame_;
374 bool did_submit_in_last_frame_; 377 bool did_submit_in_last_frame_;
375 378
376 private: 379 private:
377 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 380 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
378 }; 381 };
379 382
380 } // namespace cc 383 } // namespace cc
381 384
382 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 385 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698