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

Unified Diff: ppapi/shared_impl/ppb_input_event_shared.h

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move InputEventPriavte interface to terfaces_ppb_private.h Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/ppb_input_event_shared.h
diff --git a/ppapi/shared_impl/ppb_input_event_shared.h b/ppapi/shared_impl/ppb_input_event_shared.h
index ad467b4551c6f8c032573ff0421175b409f92fa7..ebfad8611d70a7e490603ace3535fee449f4dd42 100644
--- a/ppapi/shared_impl/ppb_input_event_shared.h
+++ b/ppapi/shared_impl/ppb_input_event_shared.h
@@ -13,6 +13,7 @@
#include "ppapi/c/ppb_input_event.h"
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_input_event_api.h"
+#include "ui/events/latency_info.h"
namespace ppapi {
@@ -56,6 +57,8 @@ struct PPAPI_SHARED_EXPORT InputEventData {
std::vector<PP_TouchPoint> touches;
std::vector<PP_TouchPoint> changed_touches;
std::vector<PP_TouchPoint> target_touches;
+
+ ui::LatencyInfo latency_info;
};
// This simple class implements the PPB_InputEvent_API in terms of the
@@ -97,6 +100,7 @@ class PPAPI_SHARED_EXPORT PPB_InputEvent_Shared
uint32_t index) OVERRIDE;
virtual PP_TouchPoint GetTouchById(PP_TouchListType list,
uint32_t id) OVERRIDE;
+ virtual PP_Bool TraceInputLatency(PP_Bool has_damage) OVERRIDE;
// Implementations for event creation.
static PP_Resource CreateIMEInputEvent(ResourceObjectType type,

Powered by Google App Engine
This is Rietveld 408576698