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

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: fix Sami's comments Created 3 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Returns a new RenderWidgetSchedulingState. The signals from this will be 79 // Returns a new RenderWidgetSchedulingState. The signals from this will be
80 // used to make scheduling decisions. 80 // used to make scheduling decisions.
81 virtual std::unique_ptr<RenderWidgetSchedulingState> 81 virtual std::unique_ptr<RenderWidgetSchedulingState>
82 NewRenderWidgetSchedulingState() = 0; 82 NewRenderWidgetSchedulingState() = 0;
83 83
84 // Called to notify about the start of an extended period where no frames 84 // Called to notify about the start of an extended period where no frames
85 // need to be drawn. Must be called from the main thread. 85 // need to be drawn. Must be called from the main thread.
86 virtual void BeginFrameNotExpectedSoon() = 0; 86 virtual void BeginFrameNotExpectedSoon() = 0;
87 87
88 // Called to notify about the start of a period where main frames are not
89 // scheduled and so short idle work can be scheduled. This will precede
90 // BeginFrameNotExpectedSoon and is also called when the compositor is busy
sunnyps 2017/04/20 18:36:48 nit: compositor may be busy
Dan Elphick 2017/04/26 16:31:44 Done.
91 // but the main thread is not.
92 virtual void BeginMainFrameNotExpectedUntil(base::TimeTicks time) = 0;
93
88 // 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
89 // main thread. 95 // main thread.
90 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; 96 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0;
91 97
92 // 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
93 // called from the main thread. 99 // called from the main thread.
94 virtual void DidCommitFrameToCompositor() = 0; 100 virtual void DidCommitFrameToCompositor() = 0;
95 101
96 // Keep RendererScheduler::InputEventStateToString in sync with this enum. 102 // Keep RendererScheduler::InputEventStateToString in sync with this enum.
97 enum class InputEventState { 103 enum class InputEventState {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 202
197 protected: 203 protected:
198 RendererScheduler(); 204 RendererScheduler();
199 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 205 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
200 }; 206 };
201 207
202 } // namespace scheduler 208 } // namespace scheduler
203 } // namespace blink 209 } // namespace blink
204 210
205 #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