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

Side by Side Diff: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: missed one Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _H_ 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _H_
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _H_ 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Returns a new RenderWidgetSchedulingState. The signals from this will be 78 // Returns a new RenderWidgetSchedulingState. The signals from this will be
79 // used to make scheduling decisions. 79 // used to make scheduling decisions.
80 virtual std::unique_ptr<RenderWidgetSchedulingState> 80 virtual std::unique_ptr<RenderWidgetSchedulingState>
81 NewRenderWidgetSchedulingState() = 0; 81 NewRenderWidgetSchedulingState() = 0;
82 82
83 // Called to notify about the start of an extended period where no frames 83 // Called to notify about the start of an extended period where no frames
84 // need to be drawn. Must be called from the main thread. 84 // need to be drawn. Must be called from the main thread.
85 virtual void BeginFrameNotExpectedSoon() = 0; 85 virtual void BeginFrameNotExpectedSoon() = 0;
86 86
87 // Called to notify about the start of a period where main frames are not
88 // scheduled and so short idle work can be scheduled. This will precedes
89 // BeginFrameNotExpectedSoon and is also called when the compositor is busy
90 // but the main thread is not.
91 // TODO(delphick): reword above?
92 virtual void DoShortIdleWork(const cc::BeginFrameArgs& args) = 0;
93
87 // Called to notify about the start of a new frame. Must be called from the 94 // Called to notify about the start of a new frame. Must be called from the
88 // main thread. 95 // main thread.
89 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; 96 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0;
90 97
91 // Called to notify that a previously begun frame was committed. Must be 98 // Called to notify that a previously begun frame was committed. Must be
92 // called from the main thread. 99 // called from the main thread.
93 virtual void DidCommitFrameToCompositor() = 0; 100 virtual void DidCommitFrameToCompositor() = 0;
94 101
95 // Keep RendererScheduler::InputEventStateToString in sync with this enum. 102 // Keep RendererScheduler::InputEventStateToString in sync with this enum.
96 enum class InputEventState { 103 enum class InputEventState {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 202
196 protected: 203 protected:
197 RendererScheduler(); 204 RendererScheduler();
198 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 205 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
199 }; 206 };
200 207
201 } // namespace scheduler 208 } // namespace scheduler
202 } // namespace blink 209 } // namespace blink
203 210
204 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ 211 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698