diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 23:46:13 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 23:46:13 +0000 |
commit | 8055c414f64ecce3014c32f1b65b6fa2eae38e38 (patch) | |
tree | e76b1383520e23667873d7d8d8446a6a0935007d /ppapi/cpp | |
parent | e7e908bb8b46620111dc036122c8d203adaab6df (diff) | |
download | chromium_src-8055c414f64ecce3014c32f1b65b6fa2eae38e38.zip chromium_src-8055c414f64ecce3014c32f1b65b6fa2eae38e38.tar.gz chromium_src-8055c414f64ecce3014c32f1b65b6fa2eae38e38.tar.bz2 |
Revert 129994 - Pass CompletionCallbacks by reference
CID=100006,100007
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9866049
TBR=tbreisacher@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9967002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129996 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r-- | ppapi/cpp/dev/video_decoder_dev.cc | 6 | ||||
-rw-r--r-- | ppapi/cpp/dev/video_decoder_dev.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/cpp/dev/video_decoder_dev.cc b/ppapi/cpp/dev/video_decoder_dev.cc index ad2ebd6..92bbe1c 100644 --- a/ppapi/cpp/dev/video_decoder_dev.cc +++ b/ppapi/cpp/dev/video_decoder_dev.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -48,7 +48,7 @@ void VideoDecoder_Dev::AssignPictureBuffers( int32_t VideoDecoder_Dev::Decode( const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, - const CompletionCallback& callback) { + CompletionCallback callback) { if (!has_interface<PPB_VideoDecoder_Dev>()) return callback.MayForce(PP_ERROR_NOINTERFACE); return get_interface<PPB_VideoDecoder_Dev>()->Decode( @@ -62,7 +62,7 @@ void VideoDecoder_Dev::ReusePictureBuffer(int32_t picture_buffer_id) { pp_resource(), picture_buffer_id); } -int32_t VideoDecoder_Dev::Flush(const CompletionCallback& callback) { +int32_t VideoDecoder_Dev::Flush(CompletionCallback callback) { if (!has_interface<PPB_VideoDecoder_Dev>()) return callback.MayForce(PP_ERROR_NOINTERFACE); return get_interface<PPB_VideoDecoder_Dev>()->Flush( diff --git a/ppapi/cpp/dev/video_decoder_dev.h b/ppapi/cpp/dev/video_decoder_dev.h index 7bfb759..c33ce2d 100644 --- a/ppapi/cpp/dev/video_decoder_dev.h +++ b/ppapi/cpp/dev/video_decoder_dev.h @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -34,9 +34,9 @@ class VideoDecoder_Dev : public Resource { // PPB_VideoDecoder_Dev implementation. void AssignPictureBuffers(const std::vector<PP_PictureBuffer_Dev>& buffers); int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, - const CompletionCallback& callback); + CompletionCallback callback); void ReusePictureBuffer(int32_t picture_buffer_id); - int32_t Flush(const CompletionCallback& callback); + int32_t Flush(CompletionCallback callback); int32_t Reset(const CompletionCallback& callback); private: |