| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 #include <stdlib.h> |
| 5 #include <deque> | 8 #include <deque> |
| 6 #include <stdlib.h> | |
| 7 | 9 |
| 8 #include "base/bind.h" | 10 #include "base/bind.h" |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 11 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
| 12 #include "remoting/base/util.h" | 15 #include "remoting/base/util.h" |
| 13 #include "remoting/codec/codec_test.h" | 16 #include "remoting/codec/codec_test.h" |
| 14 #include "remoting/codec/video_decoder.h" | 17 #include "remoting/codec/video_decoder.h" |
| 15 #include "remoting/codec/video_encoder.h" | 18 #include "remoting/codec/video_encoder.h" |
| 16 #include "remoting/proto/video.pb.h" | 19 #include "remoting/proto/video.pb.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 19 | 22 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 383 |
| 381 if (frame_count >= kWarmUpFrameCount) { | 384 if (frame_count >= kWarmUpFrameCount) { |
| 382 elapsed = base::TimeTicks::Now() - start_time; | 385 elapsed = base::TimeTicks::Now() - start_time; |
| 383 } | 386 } |
| 384 } | 387 } |
| 385 | 388 |
| 386 return (frame_count * base::TimeDelta::FromSeconds(1)) / elapsed; | 389 return (frame_count * base::TimeDelta::FromSeconds(1)) / elapsed; |
| 387 } | 390 } |
| 388 | 391 |
| 389 } // namespace remoting | 392 } // namespace remoting |
| OLD | NEW |