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

Side by Side Diff: ui/latency/latency_info.cc

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 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
« no previous file with comments | « ui/latency/latency_info.h ('k') | ui/latency/latency_info.dot » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/events/latency_info.h" 5 #include "ui/latency/latency_info.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 366 }
367 367
368 bool LatencyInfo::AddInputCoordinate(const gfx::PointF& input_coordinate) { 368 bool LatencyInfo::AddInputCoordinate(const gfx::PointF& input_coordinate) {
369 if (input_coordinates_size_ >= kMaxInputCoordinates) 369 if (input_coordinates_size_ >= kMaxInputCoordinates)
370 return false; 370 return false;
371 input_coordinates_[input_coordinates_size_++] = input_coordinate; 371 input_coordinates_[input_coordinates_size_++] = input_coordinate;
372 return true; 372 return true;
373 } 373 }
374 374
375 } // namespace ui 375 } // namespace ui
OLDNEW
« no previous file with comments | « ui/latency/latency_info.h ('k') | ui/latency/latency_info.dot » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698