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

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

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | « cc/layers/texture_layer_unittest.cc ('k') | cc/scheduler/scheduler.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 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 15 matching lines...) Expand all
26 public: 26 public:
27 virtual void SetNeedsBeginImplFrame(bool enable) = 0; 27 virtual void SetNeedsBeginImplFrame(bool enable) = 0;
28 virtual void ScheduledActionSendBeginMainFrame() = 0; 28 virtual void ScheduledActionSendBeginMainFrame() = 0;
29 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0; 29 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0;
30 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0; 30 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0;
31 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0; 31 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0;
32 virtual void ScheduledActionCommit() = 0; 32 virtual void ScheduledActionCommit() = 0;
33 virtual void ScheduledActionUpdateVisibleTiles() = 0; 33 virtual void ScheduledActionUpdateVisibleTiles() = 0;
34 virtual void ScheduledActionActivatePendingTree() = 0; 34 virtual void ScheduledActionActivatePendingTree() = 0;
35 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 35 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
36 virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0;
37 virtual void ScheduledActionManageTiles() = 0; 36 virtual void ScheduledActionManageTiles() = 0;
38 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; 37 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
39 virtual base::TimeDelta DrawDurationEstimate() = 0; 38 virtual base::TimeDelta DrawDurationEstimate() = 0;
40 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; 39 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
41 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; 40 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
42 virtual void DidBeginImplFrameDeadline() = 0; 41 virtual void DidBeginImplFrameDeadline() = 0;
43 42
44 protected: 43 protected:
45 virtual ~SchedulerClient() {} 44 virtual ~SchedulerClient() {}
46 }; 45 };
(...skipping 20 matching lines...) Expand all
67 void SetNeedsCommit(); 66 void SetNeedsCommit();
68 67
69 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 68 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
70 // we are not visible. Will eventually result in a forced draw internally. 69 // we are not visible. Will eventually result in a forced draw internally.
71 void SetNeedsForcedCommitForReadback(); 70 void SetNeedsForcedCommitForReadback();
72 71
73 void SetNeedsRedraw(); 72 void SetNeedsRedraw();
74 73
75 void SetNeedsManageTiles(); 74 void SetNeedsManageTiles();
76 75
77 void SetMainThreadNeedsLayerTextures();
78
79 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 76 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
80 77
81 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 78 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
82 79
83 void NotifyReadyToCommit(); 80 void NotifyReadyToCommit();
84 void BeginMainFrameAborted(bool did_handle); 81 void BeginMainFrameAborted(bool did_handle);
85 82
86 void DidManageTiles(); 83 void DidManageTiles();
87 void DidLoseOutputSurface(); 84 void DidLoseOutputSurface();
88 void DidCreateAndInitializeOutputSurface(); 85 void DidCreateAndInitializeOutputSurface();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 SchedulerStateMachine::Action inside_action_; 163 SchedulerStateMachine::Action inside_action_;
167 164
168 base::WeakPtrFactory<Scheduler> weak_factory_; 165 base::WeakPtrFactory<Scheduler> weak_factory_;
169 166
170 DISALLOW_COPY_AND_ASSIGN(Scheduler); 167 DISALLOW_COPY_AND_ASSIGN(Scheduler);
171 }; 168 };
172 169
173 } // namespace cc 170 } // namespace cc
174 171
175 #endif // CC_SCHEDULER_SCHEDULER_H_ 172 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698