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

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

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska's review: Use TickClock; Remove compositor_event_queue_enabled_; Nits 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
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 021b3bfc8ac9c9bc73f69105188820f28d248983..1f60c760bd9336deb4eff9df038d0a7ee2f7af9b 100644
--- a/content/common/input/event_with_latency_info.h
+++ b/content/common/input/event_with_latency_info.h
@@ -9,31 +9,11 @@
#include "base/logging.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/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:
@@ -77,7 +57,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) {
@@ -88,7 +68,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

Powered by Google App Engine
This is Rietveld 408576698