summaryrefslogtreecommitdiffstats
path: root/cc/input
diff options
context:
space:
mode:
Diffstat (limited to 'cc/input')
-rw-r--r--cc/input/input_handler.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index 00446b5..fde89d2 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/time/time.h"
#include "cc/base/cc_export.h"
+#include "cc/base/swap_promise_monitor.h"
#include "cc/input/scrollbar.h"
namespace gfx {
@@ -126,8 +127,13 @@ class CC_EXPORT InputHandler {
virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_point) = 0;
- virtual void SetLatencyInfoForInputEvent(
- const ui::LatencyInfo& latency_info) = 0;
+ // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped
+ // LatencyInfoSwapPromiseMonitor. During the life time of the
+ // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect()
+ // is called on LayerTreeHostImpl, the original latency info will be turned
+ // into a LatencyInfoSwapPromise.
+ virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
+ ui::LatencyInfo* latency) = 0;
protected:
InputHandler() {}