| Index: remoting/codec/video_encoder_vpx.cc
|
| diff --git a/remoting/codec/video_encoder_vpx.cc b/remoting/codec/video_encoder_vpx.cc
|
| index 1fa19a487cdc7ea5edbf48030f7293640e670b16..0dcd456ac32980e86227ede4a2e90942ccfa2dc9 100644
|
| --- a/remoting/codec/video_encoder_vpx.cc
|
| +++ b/remoting/codec/video_encoder_vpx.cc
|
| @@ -270,8 +270,6 @@ scoped_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| if (frame.updated_region().is_empty() && !encode_unchanged_frame_)
|
| return nullptr;
|
|
|
| - base::TimeTicks encode_start_time = base::TimeTicks::Now();
|
| -
|
| // Create or reconfigure the codec to match the size of |frame|.
|
| if (!codec_ ||
|
| (image_ &&
|
| @@ -296,7 +294,7 @@ scoped_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| }
|
|
|
| // Do the actual encoding.
|
| - int timestamp = (encode_start_time - timestamp_base_).InMilliseconds();
|
| + int timestamp = (base::TimeTicks::Now() - timestamp_base_).InMilliseconds();
|
| vpx_codec_err_t ret = vpx_codec_encode(
|
| codec_.get(), image_.get(), timestamp, 1, 0, VPX_DL_REALTIME);
|
| DCHECK_EQ(ret, VPX_CODEC_OK)
|
| @@ -341,10 +339,6 @@ scoped_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| }
|
| }
|
|
|
| - // Note the time taken to encode the pixel data.
|
| - packet->set_encode_time_ms(
|
| - (base::TimeTicks::Now() - encode_start_time).InMillisecondsRoundedUp());
|
| -
|
| return packet.Pass();
|
| }
|
|
|
|
|