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

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

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Set trace ID in test. Created 3 years, 5 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual void DidHandleInputEventOnCompositorThread( 102 virtual void DidHandleInputEventOnCompositorThread(
103 const WebInputEvent& web_input_event, 103 const WebInputEvent& web_input_event,
104 InputEventState event_state) = 0; 104 InputEventState event_state) = 0;
105 105
106 // Tells the scheduler that the system processed an input event. Must be 106 // Tells the scheduler that the system processed an input event. Must be
107 // called from the main thread. 107 // called from the main thread.
108 virtual void DidHandleInputEventOnMainThread( 108 virtual void DidHandleInputEventOnMainThread(
109 const WebInputEvent& web_input_event, 109 const WebInputEvent& web_input_event,
110 WebInputEventResult result) = 0; 110 WebInputEventResult result) = 0;
111 111
112 // Returns the most recently reported expected queueing time, computed over
113 // the past 1 second window.
114 virtual base::TimeDelta MostRecentExpectedQueueingTime() = 0;
115
112 // Tells the scheduler that the system is displaying an input animation (e.g. 116 // Tells the scheduler that the system is displaying an input animation (e.g.
113 // a fling). Called by the compositor (impl) thread. 117 // a fling). Called by the compositor (impl) thread.
114 virtual void DidAnimateForInputOnCompositorThread() = 0; 118 virtual void DidAnimateForInputOnCompositorThread() = 0;
115 119
116 // Tells the scheduler about the change of renderer visibility status (e.g. 120 // Tells the scheduler about the change of renderer visibility status (e.g.
117 // "all widgets are hidden" condition). Used mostly for metric purposes. 121 // "all widgets are hidden" condition). Used mostly for metric purposes.
118 // Must be called on the main thread. 122 // Must be called on the main thread.
119 virtual void SetRendererHidden(bool hidden) = 0; 123 virtual void SetRendererHidden(bool hidden) = 0;
120 124
121 // Tells the scheduler about the change of renderer background status, i.e., 125 // Tells the scheduler about the change of renderer background status, i.e.,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 207
204 protected: 208 protected:
205 RendererScheduler(); 209 RendererScheduler();
206 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 210 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
207 }; 211 };
208 212
209 } // namespace scheduler 213 } // namespace scheduler
210 } // namespace blink 214 } // namespace blink
211 215
212 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ 216 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698