diff options
author | sergeyu <sergeyu@chromium.org> | 2015-09-16 17:45:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-17 00:46:24 +0000 |
commit | aa1f0239f0a5d0ace93c63022829fcf39fee99e7 (patch) | |
tree | 0a15e80333e1e0925ef42596526f5b066d052b66 /remoting/client/jni | |
parent | d24401d628410cc67c4ae7a7bc9c3a5e65fa0572 (diff) | |
download | chromium_src-aa1f0239f0a5d0ace93c63022829fcf39fee99e7.zip chromium_src-aa1f0239f0a5d0ace93c63022829fcf39fee99e7.tar.gz chromium_src-aa1f0239f0a5d0ace93c63022829fcf39fee99e7.tar.bz2 |
Rename/Move ChromotingStats->protocol::PerformanceTracker
The class will be used directly from protocol dispatchers, so it needs
to be accessible on the protocol layer. Also renamed it so the name
reflects what the class is responsible for.
Review URL: https://codereview.chromium.org/1351723004
Cr-Commit-Position: refs/heads/master@{#349295}
Diffstat (limited to 'remoting/client/jni')
-rw-r--r-- | remoting/client/jni/chromoting_jni_instance.cc | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc index 62c4edf..f2f63b6 100644 --- a/remoting/client/jni/chromoting_jni_instance.cc +++ b/remoting/client/jni/chromoting_jni_instance.cc @@ -299,7 +299,7 @@ void ChromotingJniInstance::RecordPaintTime(int64 paint_time_ms) { } if (stats_logging_enabled_) - video_renderer_->GetStats()->RecordPaintTime(paint_time_ms); + video_renderer_->GetPerformanceTracker()->RecordPaintTime(paint_time_ms); } void ChromotingJniInstance::OnConnectionState( @@ -492,16 +492,18 @@ void ChromotingJniInstance::LogPerfStats() { if (!stats_logging_enabled_) return; - ChromotingStats* stats = video_renderer_->GetStats(); - __android_log_print(ANDROID_LOG_INFO, "stats", - "Bandwidth:%.0f FrameRate:%.1f Capture:%.1f Encode:%.1f " - "Decode:%.1f Render:%.1f Latency:%.0f", - stats->video_bandwidth(), stats->video_frame_rate(), - stats->video_capture_ms(), stats->video_encode_ms(), - stats->video_decode_ms(), stats->video_paint_ms(), - stats->round_trip_ms()); - - client_status_logger_->LogStatistics(stats); + protocol::PerformanceTracker* perf_tracker = + video_renderer_->GetPerformanceTracker(); + __android_log_print( + ANDROID_LOG_INFO, "stats", + "Bandwidth:%.0f FrameRate:%.1f Capture:%.1f Encode:%.1f " + "Decode:%.1f Render:%.1f Latency:%.0f", + perf_tracker->video_bandwidth(), perf_tracker->video_frame_rate(), + perf_tracker->video_capture_ms(), perf_tracker->video_encode_ms(), + perf_tracker->video_decode_ms(), perf_tracker->video_paint_ms(), + perf_tracker->round_trip_ms()); + + client_status_logger_->LogStatistics(perf_tracker); jni_runtime_->network_task_runner()->PostDelayedTask( FROM_HERE, base::Bind(&ChromotingJniInstance::LogPerfStats, this), |