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

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: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 years, 7 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Returns a new RenderWidgetSchedulingState. The signals from this will be 66 // Returns a new RenderWidgetSchedulingState. The signals from this will be
67 // used to make scheduling decisions. 67 // used to make scheduling decisions.
68 virtual std::unique_ptr<RenderWidgetSchedulingState> 68 virtual std::unique_ptr<RenderWidgetSchedulingState>
69 NewRenderWidgetSchedulingState() = 0; 69 NewRenderWidgetSchedulingState() = 0;
70 70
71 // Called to notify about the start of an extended period where no frames 71 // Called to notify about the start of an extended period where no frames
72 // need to be drawn. Must be called from the main thread. 72 // need to be drawn. Must be called from the main thread.
73 virtual void BeginFrameNotExpectedSoon() = 0; 73 virtual void BeginFrameNotExpectedSoon() = 0;
74 74
75 // Called to notify about the start of a period where main frames are not
76 // scheduled and so short idle work can be scheduled. This will precede
77 // BeginFrameNotExpectedSoon and is also called when the compositor may be
78 // busy but the main thread is not.
79 virtual void BeginMainFrameNotExpectedUntil(base::TimeTicks time) = 0;
80
75 // Called to notify about the start of a new frame. Must be called from the 81 // Called to notify about the start of a new frame. Must be called from the
76 // main thread. 82 // main thread.
77 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; 83 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0;
78 84
79 // Called to notify that a previously begun frame was committed. Must be 85 // Called to notify that a previously begun frame was committed. Must be
80 // called from the main thread. 86 // called from the main thread.
81 virtual void DidCommitFrameToCompositor() = 0; 87 virtual void DidCommitFrameToCompositor() = 0;
82 88
83 // Keep RendererScheduler::InputEventStateToString in sync with this enum. 89 // Keep RendererScheduler::InputEventStateToString in sync with this enum.
84 enum class InputEventState { 90 enum class InputEventState {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 190
185 protected: 191 protected:
186 RendererScheduler(); 192 RendererScheduler();
187 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 193 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
188 }; 194 };
189 195
190 } // namespace scheduler 196 } // namespace scheduler
191 } // namespace blink 197 } // namespace blink
192 198
193 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ 199 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698