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

Side by Side Diff: cc/debug/frame_timing_cost_tracker.cc

Issue 799863004: not for commit/review (thread cost tracker) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/debug/frame_timing_cost_tracker.h ('k') | cc/debug/worker_thread_cost_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/debug/frame_timing_cost_tracker.h"
6
7 namespace cc {
8
9 FrameTimingCostTracker::FrameTimingCostTracker() {
10 }
11
12 FrameTimingCostTracker::~FrameTimingCostTracker() {
13 }
14
15 void FrameTimingCostTracker::Start(int source_frame_number) {
16 worker_thread_cost_tracker_.set_source_frame_to_track(source_frame_number);
17 }
18
19 void FrameTimingCostTracker::Stop() {
20 worker_thread_cost_tracker_.set_source_frame_to_track(0);
21 }
22
23 base::TimeDelta FrameTimingCostTracker::GetTotalCost() {
24 return worker_thread_cost_tracker_.get_cost();
25 }
26
27 void FrameTimingCostTracker::ResetCost() {
28 worker_thread_cost_tracker_.reset_cost();
29 }
30
31 WorkerThreadCostTracker* FrameTimingCostTracker::GetWorkerThreadCostTracker() {
32 return &worker_thread_cost_tracker_;
33 }
34
35 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/frame_timing_cost_tracker.h ('k') | cc/debug/worker_thread_cost_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698