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

Side by Side Diff: content/browser/renderer_host/ui_events_helper.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Use seperate bool for set_non_blocking Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/ui_events_helper.h" 5 #include "content/browser/renderer_host/ui_events_helper.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "content/common/input/web_touch_event_traits.h" 10 #include "content/common/input/web_touch_event_traits.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 point.radius_x, point.radius_y, point.force), 83 point.radius_x, point.radius_y, point.force),
84 flags, point.rotation_angle); 84 flags, point.rotation_angle);
85 uievent->set_location_f(location); 85 uievent->set_location_f(location);
86 uievent->set_root_location_f(location); 86 uievent->set_root_location_f(location);
87 uievent->set_latency(touch_with_latency.latency); 87 uievent->set_latency(touch_with_latency.latency);
88 list->push_back(std::move(uievent)); 88 list->push_back(std::move(uievent));
89 } 89 }
90 return true; 90 return true;
91 } 91 }
92 92
93 bool InputEventAckStateIsSetNonBlocking(InputEventAckState ack_state) {
94 switch (ack_state) {
95 case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING:
96 case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING_DUE_TO_FLING:
97 return true;
98 default:
99 return false;
100 }
101 }
102
93 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698