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

Side by Side Diff: cc/base/latency_info_swap_promise.cc

Issue 400533006: Revert "Implement scroll handler latency tracking" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « cc/base/latency_info_swap_promise.h ('k') | cc/base/latency_info_swap_promise_monitor.h » ('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 "cc/base/latency_info_swap_promise.h" 5 #include "cc/base/latency_info_swap_promise.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace { 9 namespace {
10 ui::LatencyComponentType DidNotSwapReasonToLatencyComponentType( 10 ui::LatencyComponentType DidNotSwapReasonToLatencyComponentType(
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 void LatencyInfoSwapPromise::DidNotSwap(DidNotSwapReason reason) { 40 void LatencyInfoSwapPromise::DidNotSwap(DidNotSwapReason reason) {
41 latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason), 41 latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason),
42 0, 0); 42 0, 0);
43 // TODO(miletus): Turn this back on once per-event LatencyInfo tracking 43 // TODO(miletus): Turn this back on once per-event LatencyInfo tracking
44 // is enabled in GPU side. 44 // is enabled in GPU side.
45 // DCHECK(latency_.terminated); 45 // DCHECK(latency_.terminated);
46 } 46 }
47 47
48 int64 LatencyInfoSwapPromise::TraceId() const {
49 return latency_.trace_id;
50 }
51
52 } // namespace cc 48 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/latency_info_swap_promise.h ('k') | cc/base/latency_info_swap_promise_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698