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

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

Issue 96363002: Revert 237857 "Revert 237848 "Use LatencyInfoSwapPromise to trac..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/cc/base/latency_info_swap_promise.h ('k') | trunk/src/cc/base/swap_promise.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 30 matching lines...) Expand all
41 41
42 void LatencyInfoSwapPromise::DidNotSwap(DidNotSwapReason reason) { 42 void LatencyInfoSwapPromise::DidNotSwap(DidNotSwapReason reason) {
43 latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason), 43 latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason),
44 0, 0); 44 0, 0);
45 // TODO(miletus): Turn this back on once per-event LatencyInfo tracking 45 // TODO(miletus): Turn this back on once per-event LatencyInfo tracking
46 // is enabled in GPU side. 46 // is enabled in GPU side.
47 // DCHECK(latency_.terminated); 47 // DCHECK(latency_.terminated);
48 } 48 }
49 49
50 } // namespace cc 50 } // namespace cc
OLDNEW
« no previous file with comments | « trunk/src/cc/base/latency_info_swap_promise.h ('k') | trunk/src/cc/base/swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698