Skip to content

Commit

Permalink
Fix build breaks
Browse files Browse the repository at this point in the history
Adding statis_cast from int64 to int.

TBR=ajwong

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/6798001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80525 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
hclam@google.com committed Apr 5, 2011
1 parent 027dbf4 commit 38316e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions remoting/host/screen_recorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ void ScreenRecorder::CaptureDoneCallback(
return;

TraceContext::tracer()->PrintString("Capture Done");
int capture_time =
(base::Time::Now() - capture_start_time_).InMilliseconds();
int capture_time = static_cast<int>(
(base::Time::Now() - capture_start_time_).InMilliseconds());
capture_data->set_capture_time_ms(capture_time);
encode_loop_->PostTask(
FROM_HERE,
Expand Down Expand Up @@ -379,10 +379,10 @@ void ScreenRecorder::DoStopOnEncodeThread(Task* done_task) {
void ScreenRecorder::EncodedDataAvailableCallback(VideoPacket* packet) {
DCHECK_EQ(encode_loop_, MessageLoop::current());

bool last = packet->flags() & VideoPacket::LAST_PACKET;
bool last = (packet->flags() & VideoPacket::LAST_PACKET) != 0;
if (last) {
int encode_time =
(base::Time::Now() - encode_start_time_).InMilliseconds();
int encode_time = static_cast<int>(
(base::Time::Now() - encode_start_time_).InMilliseconds());
packet->set_encode_time_ms(encode_time);
}

Expand Down

0 comments on commit 38316e1

Please sign in to comment.