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

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

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 #include "cc/scheduler/scheduler.h" 5 #include "cc/scheduler/scheduler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 return estimated_draw_time < args.deadline; 780 return estimated_draw_time < args.deadline;
781 } 781 }
782 782
783 bool Scheduler::IsBeginMainFrameSentOrStarted() const { 783 bool Scheduler::IsBeginMainFrameSentOrStarted() const {
784 return (state_machine_.begin_main_frame_state() == 784 return (state_machine_.begin_main_frame_state() ==
785 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_SENT || 785 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_SENT ||
786 state_machine_.begin_main_frame_state() == 786 state_machine_.begin_main_frame_state() ==
787 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_STARTED); 787 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_STARTED);
788 } 788 }
789 789
790 uint32_t Scheduler::CurrentBeginFrameSourceId() const {
791 return begin_main_frame_args_.source_id;
792 }
793
794 uint64_t Scheduler::CurrentBeginFrameSequenceNumber() const {
795 return begin_main_frame_args_.sequence_number;
796 }
797
798 uint64_t Scheduler::LatestConfirmedBeginFrameSequenceNumberForActiveTree()
799 const {
800 return state_machine_
801 .last_begin_frame_sequence_number_active_tree_was_fresh();
802 }
803
790 } // namespace cc 804 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698