| Index: content/browser/renderer_host/input/touch_event_queue.cc
|
| diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
|
| index 7447c7f42f987bf356858ea6f4fd603de51e60d0..9620b50ab2fa09e5d0d6a30ed9f9830c6accafb3 100644
|
| --- a/content/browser/renderer_host/input/touch_event_queue.cc
|
| +++ b/content/browser/renderer_host/input/touch_event_queue.cc
|
| @@ -71,11 +71,11 @@ class CoalescedWebTouchEvent {
|
| return coalesced_event_;
|
| }
|
|
|
| - WebTouchEventWithLatencyList::const_iterator begin() const {
|
| + WebTouchEventWithLatencyList::iterator begin() {
|
| return events_.begin();
|
| }
|
|
|
| - WebTouchEventWithLatencyList::const_iterator end() const {
|
| + WebTouchEventWithLatencyList::iterator end() {
|
| return events_.end();
|
| }
|
|
|
| @@ -243,14 +243,10 @@ void TouchEventQueue::PopTouchEventToClient(
|
| base::AutoReset<CoalescedWebTouchEvent*>
|
| dispatching_touch_ack(&dispatching_touch_ack_, acked_event.get());
|
|
|
| - base::TimeTicks now = base::TimeTicks::HighResNow();
|
| - for (WebTouchEventWithLatencyList::const_iterator iter = acked_event->begin(),
|
| + for (WebTouchEventWithLatencyList::iterator iter = acked_event->begin(),
|
| end = acked_event->end();
|
| iter != end; ++iter) {
|
| - ui::LatencyInfo* latency = const_cast<ui::LatencyInfo*>(&(iter->latency));
|
| - latency->AddNewLatencyFrom(renderer_latency_info);
|
| - latency->AddLatencyNumberWithTimestamp(
|
| - ui::INPUT_EVENT_LATENCY_ACKED_COMPONENT, 0, 0, now, 1);
|
| + iter->latency.AddNewLatencyFrom(renderer_latency_info);
|
| client_->OnTouchEventAck((*iter), ack_result);
|
| }
|
| }
|
|
|