diff options
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: |