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

Unified Diff: content/common/input/event_with_latency_info.h

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska&enne's review: Call |Now()| once per loop; Chromium style; Remove parameterized test Created 4 years, 1 month 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/event_with_latency_info.h
diff --git a/content/common/input/event_with_latency_info.h b/content/common/input/event_with_latency_info.h
index 541b7ce4589da3a89077a39f5e4ff44ffa14fe14..750b15d23390023da338ae7ec872129a8e5b9f7e 100644
--- a/content/common/input/event_with_latency_info.h
+++ b/content/common/input/event_with_latency_info.h
@@ -10,31 +10,11 @@
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
+#include "ui/events/blink/blink_event_util.h"
#include "ui/events/blink/scoped_web_input_event.h"
#include "ui/events/latency_info.h"
namespace content {
-namespace internal {
-
-bool CONTENT_EXPORT CanCoalesce(const blink::WebMouseEvent& event_to_coalesce,
- const blink::WebMouseEvent& event);
-void CONTENT_EXPORT Coalesce(const blink::WebMouseEvent& event_to_coalesce,
- blink::WebMouseEvent* event);
-bool CONTENT_EXPORT
-CanCoalesce(const blink::WebMouseWheelEvent& event_to_coalesce,
- const blink::WebMouseWheelEvent& event);
-void CONTENT_EXPORT Coalesce(const blink::WebMouseWheelEvent& event_to_coalesce,
- blink::WebMouseWheelEvent* event);
-bool CONTENT_EXPORT CanCoalesce(const blink::WebTouchEvent& event_to_coalesce,
- const blink::WebTouchEvent& event);
-void CONTENT_EXPORT Coalesce(const blink::WebTouchEvent& event_to_coalesce,
- blink::WebTouchEvent* event);
-bool CONTENT_EXPORT CanCoalesce(const blink::WebGestureEvent& event_to_coalesce,
- const blink::WebGestureEvent& event);
-void CONTENT_EXPORT Coalesce(const blink::WebGestureEvent& event_to_coalesce,
- blink::WebGestureEvent* event);
-
-} // namespace internal
class ScopedWebInputEventWithLatencyInfo {
public:
@@ -78,7 +58,7 @@ class EventWithLatencyInfo {
DCHECK_EQ(sizeof(T), event.size);
DCHECK_EQ(sizeof(T), other.event.size);
- return internal::CanCoalesce(other.event, event);
+ return ui::CanCoalesce(other.event, event);
}
void CoalesceWith(const EventWithLatencyInfo& other) {
@@ -89,7 +69,7 @@ class EventWithLatencyInfo {
// New events get coalesced into older events, and the newer timestamp
// should always be preserved.
const double time_stamp_seconds = other.event.timeStampSeconds;
- internal::Coalesce(other.event, &event);
+ ui::Coalesce(other.event, &event);
event.timeStampSeconds = time_stamp_seconds;
// When coalescing two input events, we keep the oldest LatencyInfo
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698