Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 * Use of this source code is governed by a BSD-style license that can be | |
| 3 * found in the LICENSE file. | |
| 4 */ | |
| 5 | |
| 6 /** | |
| 7 * This file defines the PPB_InputEvent_Private interfaces. | |
| 8 */ | |
| 9 | |
| 10 label Chrome { | |
| 11 M36 = 0.1 | |
| 12 }; | |
| 13 | |
| 14 /** | |
| 15 * The <code>PPB_InputEvent_Private</code> interface contains pointers to severa l | |
| 16 * functions related to generic input events on the browser. | |
| 17 */ | |
| 18 | |
| 19 interface PPB_InputEvent_Private { | |
| 20 /** | |
| 21 * TraceInputLatency() traces the latency of the input event. The input | |
| 22 * latency is shown in the trace viewer. The starting point of the input | |
| 23 * latency is when the input event is sent from renderer to plugin. If the | |
| 24 * input event does not cause any rendering damage, the end point of input | |
| 25 * latency is when TraceInputLatency() is called on the event. If the input | |
| 26 * event does cause rendering damage, the end point of input latency is when | |
| 27 * the resulted plugin frame eventually reaches screen. | |
|
dmichael (off chromium)
2014/05/05 22:20:32
There are some caveats with this in your current p
Yufeng Shen (Slow to review)
2014/05/07 17:12:14
Extra notes added.
| |
| 28 * | |
| 29 * @param[in] event A <code>PP_Resource</code> corresponding to an input | |
| 30 * event. | |
| 31 * | |
| 32 * @param[in] has_damage A bool indicating whether the event has caused any | |
| 33 * rendering damage. | |
| 34 */ | |
| 35 | |
| 36 void TraceInputLatency([in] PP_Resource event, | |
| 37 [in] PP_Bool has_damage); | |
| 38 }; | |
| 39 | |
| OLD | NEW |