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

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

Issue 16574002: Estimate draw duration in SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add UMA stats Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/scheduler/scheduler_unittest.cc » ('j') | cc/trees/thread_proxy.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 virtual ScheduledActionDrawAndSwapResult 37 virtual ScheduledActionDrawAndSwapResult
38 ScheduledActionDrawAndSwapIfPossible() = 0; 38 ScheduledActionDrawAndSwapIfPossible() = 0;
39 virtual ScheduledActionDrawAndSwapResult 39 virtual ScheduledActionDrawAndSwapResult
40 ScheduledActionDrawAndSwapForced() = 0; 40 ScheduledActionDrawAndSwapForced() = 0;
41 virtual void ScheduledActionCommit() = 0; 41 virtual void ScheduledActionCommit() = 0;
42 virtual void ScheduledActionCheckForCompletedTileUploads() = 0; 42 virtual void ScheduledActionCheckForCompletedTileUploads() = 0;
43 virtual void ScheduledActionActivatePendingTreeIfNeeded() = 0; 43 virtual void ScheduledActionActivatePendingTreeIfNeeded() = 0;
44 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 44 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
45 virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0; 45 virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0;
46 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; 46 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
47 virtual base::TimeDelta DrawDurationEstimate() = 0;
47 48
48 protected: 49 protected:
49 virtual ~SchedulerClient() {} 50 virtual ~SchedulerClient() {}
50 }; 51 };
51 52
52 class CC_EXPORT Scheduler : FrameRateControllerClient { 53 class CC_EXPORT Scheduler : FrameRateControllerClient {
53 public: 54 public:
54 static scoped_ptr<Scheduler> Create( 55 static scoped_ptr<Scheduler> Create(
55 SchedulerClient* client, 56 SchedulerClient* client,
56 scoped_ptr<FrameRateController> frame_rate_controller, 57 scoped_ptr<FrameRateController> frame_rate_controller,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 scoped_ptr<FrameRateController> frame_rate_controller_; 130 scoped_ptr<FrameRateController> frame_rate_controller_;
130 SchedulerStateMachine state_machine_; 131 SchedulerStateMachine state_machine_;
131 bool inside_process_scheduled_actions_; 132 bool inside_process_scheduled_actions_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(Scheduler); 134 DISALLOW_COPY_AND_ASSIGN(Scheduler);
134 }; 135 };
135 136
136 } // namespace cc 137 } // namespace cc
137 138
138 #endif // CC_SCHEDULER_SCHEDULER_H_ 139 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler_unittest.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698