Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Unified Diff: remoting/client/rectangle_update_decoder.cc

Issue 7062042: 1;2305;0cRevert 86971 - Move media library AutoTaskRunner to base and rename ScopedTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/rectangle_update_decoder.cc
===================================================================
--- remoting/client/rectangle_update_decoder.cc (revision 86971)
+++ remoting/client/rectangle_update_decoder.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/message_loop.h"
+#include "media/base/callback.h"
#include "remoting/base/decoder.h"
#include "remoting/base/decoder_row_based.h"
#include "remoting/base/decoder_vp8.h"
@@ -14,6 +15,7 @@
#include "remoting/client/frame_consumer.h"
#include "remoting/protocol/session_config.h"
+using media::AutoTaskRunner;
using remoting::protocol::ChannelConfig;
using remoting::protocol::SessionConfig;
@@ -82,11 +84,11 @@
done));
return;
}
- base::ScopedTaskRunner done_runner(done);
+ AutoTaskRunner done_runner(done);
TraceContext::tracer()->PrintString("Decode Packet called.");
- AllocateFrame(packet, done_runner.Release());
+ AllocateFrame(packet, done_runner.release());
}
void RectangleUpdateDecoder::AllocateFrame(const VideoPacket* packet,
@@ -98,7 +100,7 @@
&RectangleUpdateDecoder::AllocateFrame, packet, done));
return;
}
- base::ScopedTaskRunner done_runner(done);
+ AutoTaskRunner done_runner(done);
TraceContext::tracer()->PrintString("AllocateFrame called.");
@@ -131,11 +133,11 @@
&frame_,
NewRunnableMethod(this,
&RectangleUpdateDecoder::ProcessPacketData,
- packet, done_runner.Release()));
+ packet, done_runner.release()));
frame_is_new_ = true;
return;
}
- ProcessPacketData(packet, done_runner.Release());
+ ProcessPacketData(packet, done_runner.release());
}
void RectangleUpdateDecoder::ProcessPacketData(
@@ -148,7 +150,7 @@
done));
return;
}
- base::ScopedTaskRunner done_runner(done);
+ AutoTaskRunner done_runner(done);
if (frame_is_new_) {
decoder_->Reset();
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698