OLD | NEW |
(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 #ifndef CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_ |
| 6 #define CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_ |
| 7 |
| 8 #include "cc/debug/worker_thread_cost_tracker.h" |
| 9 |
| 10 namespace cc { |
| 11 |
| 12 class FrameTimingCostTracker { |
| 13 public: |
| 14 FrameTimingCostTracker(); |
| 15 ~FrameTimingCostTracker(); |
| 16 |
| 17 void Start(int source_frame_number); |
| 18 void Stop(); |
| 19 |
| 20 base::TimeDelta GetTotalCost(); |
| 21 void ResetCost(); |
| 22 |
| 23 WorkerThreadCostTracker* GetWorkerThreadCostTracker(); |
| 24 |
| 25 private: |
| 26 WorkerThreadCostTracker worker_thread_cost_tracker_; |
| 27 }; |
| 28 |
| 29 } // namespace cc |
| 30 |
| 31 #endif // CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_ |
OLD | NEW |