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

Side by Side Diff: cc/scheduler.h

Issue 12022043: cc: Fix inappropriate use of term "texture". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/InitializeTile/UploadTile/ and s/CompletedSetPixels/CompletedTileUploads/ Created 7 years, 11 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/layer_tree_host_impl_unittest.cc ('k') | cc/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_H_ 5 #ifndef CC_SCHEDULER_H_
6 #define CC_SCHEDULER_H_ 6 #define CC_SCHEDULER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 21 matching lines...) Expand all
32 bool didDraw; 32 bool didDraw;
33 bool didSwap; 33 bool didSwap;
34 }; 34 };
35 35
36 class SchedulerClient { 36 class SchedulerClient {
37 public: 37 public:
38 virtual void scheduledActionBeginFrame() = 0; 38 virtual void scheduledActionBeginFrame() = 0;
39 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl e() = 0; 39 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl e() = 0;
40 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() = 0; 40 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() = 0;
41 virtual void scheduledActionCommit() = 0; 41 virtual void scheduledActionCommit() = 0;
42 virtual void scheduledActionCheckForCompletedTextures() = 0; 42 virtual void scheduledActionCheckForCompletedTileUploads() = 0;
43 virtual void scheduledActionActivatePendingTreeIfNeeded() = 0; 43 virtual void scheduledActionActivatePendingTreeIfNeeded() = 0;
44 virtual void scheduledActionBeginContextRecreation() = 0; 44 virtual void scheduledActionBeginContextRecreation() = 0;
45 virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0; 45 virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0;
46 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) = 0; 46 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) = 0;
47 47
48 protected: 48 protected:
49 virtual ~SchedulerClient() { } 49 virtual ~SchedulerClient() { }
50 }; 50 };
51 51
52 class CC_EXPORT Scheduler : FrameRateControllerClient { 52 class CC_EXPORT Scheduler : FrameRateControllerClient {
(...skipping 18 matching lines...) Expand all
71 // Like setNeedsCommit(), but ensures a commit will definitely happen even i f we are not visible. 71 // Like setNeedsCommit(), but ensures a commit will definitely happen even i f we are not visible.
72 void setNeedsForcedCommit(); 72 void setNeedsForcedCommit();
73 73
74 void setNeedsRedraw(); 74 void setNeedsRedraw();
75 75
76 void setMainThreadNeedsLayerTextures(); 76 void setMainThreadNeedsLayerTextures();
77 77
78 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i f we are not visible. 78 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i f we are not visible.
79 void setNeedsForcedRedraw(); 79 void setNeedsForcedRedraw();
80 80
81 void didSwapUseIncompleteTexture(); 81 void didSwapUseIncompleteTile();
82 82
83 void beginFrameComplete(); 83 void beginFrameComplete();
84 void beginFrameAborted(); 84 void beginFrameAborted();
85 85
86 void setMaxFramesPending(int); 86 void setMaxFramesPending(int);
87 int maxFramesPending() const; 87 int maxFramesPending() const;
88 88
89 void setSwapBuffersCompleteSupported(bool); 89 void setSwapBuffersCompleteSupported(bool);
90 void didSwapBuffersComplete(); 90 void didSwapBuffersComplete();
91 91
(...skipping 21 matching lines...) Expand all
113 scoped_ptr<FrameRateController> m_frameRateController; 113 scoped_ptr<FrameRateController> m_frameRateController;
114 SchedulerStateMachine m_stateMachine; 114 SchedulerStateMachine m_stateMachine;
115 bool m_insideProcessScheduledActions; 115 bool m_insideProcessScheduledActions;
116 116
117 DISALLOW_COPY_AND_ASSIGN(Scheduler); 117 DISALLOW_COPY_AND_ASSIGN(Scheduler);
118 }; 118 };
119 119
120 } // namespace cc 120 } // namespace cc
121 121
122 #endif // CC_SCHEDULER_H_ 122 #endif // CC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698