summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_fake_ascii.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 02:07:41 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 02:07:41 +0000
commit1e1cb3bc787a85e1791f737f831d00ee08db364d (patch)
treeab228ff464b8bd78aee795e58262bd6c11e5f3dc /remoting/host/capturer_fake_ascii.cc
parentbe4565bce9bb1a5b3f5477cc27e20da6ddcc1de7 (diff)
downloadchromium_src-1e1cb3bc787a85e1791f737f831d00ee08db364d.zip
chromium_src-1e1cb3bc787a85e1791f737f831d00ee08db364d.tar.gz
chromium_src-1e1cb3bc787a85e1791f737f831d00ee08db364d.tar.bz2
Move code in src/remoting to the new callbacks.
BUG=None TEST=Remoting still works. Review URL: http://codereview.chromium.org/8493020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/capturer_fake_ascii.cc')
-rw-r--r--remoting/host/capturer_fake_ascii.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/remoting/host/capturer_fake_ascii.cc b/remoting/host/capturer_fake_ascii.cc
index f2bb5d2..e0f5845 100644
--- a/remoting/host/capturer_fake_ascii.cc
+++ b/remoting/host/capturer_fake_ascii.cc
@@ -52,9 +52,7 @@ void CapturerFakeAscii::InvalidateFullScreen() {
}
void CapturerFakeAscii::CaptureInvalidRegion(
- CaptureCompletedCallback* callback) {
- scoped_ptr<CaptureCompletedCallback> callback_deleter(callback);
-
+ const CaptureCompletedCallback& callback) {
GenerateImage();
DataPlanes planes;
planes.data[0] = buffers_[current_buffer_].get();
@@ -65,7 +63,7 @@ void CapturerFakeAscii::CaptureInvalidRegion(
helper_.set_size_most_recent(capture_data->size());
- callback->Run(capture_data);
+ callback.Run(capture_data);
}
const SkISize& CapturerFakeAscii::size_most_recent() const {