From c7526b25874021a49c043e30decf9cefdd5b966a Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Sat, 30 Oct 2010 00:46:54 +0000 Subject: Rename UploadToVideoFrame to ConvertToVideoFrame. (Note: This was a TODO for hclam). BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4113006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64526 0039d316-1c4b-4281-b951-d872f2087c98 --- media/video/mft_h264_decode_engine.cc | 2 +- media/video/mock_objects.h | 2 +- media/video/video_decode_context.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'media/video') diff --git a/media/video/mft_h264_decode_engine.cc b/media/video/mft_h264_decode_engine.cc index 9a5bdb0..5166b1f 100644 --- a/media/video/mft_h264_decode_engine.cc +++ b/media/video/mft_h264_decode_engine.cc @@ -650,7 +650,7 @@ bool MftH264DecodeEngine::DoDecode() { // TODO(imcheng): Detect error. output_frames_[0]->SetTimestamp(TimeDelta::FromMicroseconds(timestamp)); output_frames_[0]->SetDuration(TimeDelta::FromMicroseconds(duration)); - context_->UploadToVideoFrame( + context_->ConvertToVideoFrame( surface.get(), output_frames_[0], NewRunnableMethod(this, &MftH264DecodeEngine::OnUploadVideoFrameDone, surface, output_frames_[0])); diff --git a/media/video/mock_objects.h b/media/video/mock_objects.h index 24cd4d3..c0f3dd9 100644 --- a/media/video/mock_objects.h +++ b/media/video/mock_objects.h @@ -41,7 +41,7 @@ class MockVideoDecodeContext : public VideoDecodeContext { std::vector >* frames, Task* task)); MOCK_METHOD0(ReleaseAllVideoFrames, void()); - MOCK_METHOD3(UploadToVideoFrame, void( + MOCK_METHOD3(ConvertToVideoFrame, void( void* buffer, scoped_refptr frame, Task* task)); MOCK_METHOD1(Destroy, void(Task* task)); diff --git a/media/video/video_decode_context.h b/media/video/video_decode_context.h index 7bd6741..55740f7 100644 --- a/media/video/video_decode_context.h +++ b/media/video/video_decode_context.h @@ -67,9 +67,9 @@ class VideoDecodeContext { // Implementor should know how to handle it. // // |task| is executed if the operation was completed successfully. - // TODO(hclam): Rename this to ConvertToVideoFrame(). - virtual void UploadToVideoFrame(void* buffer, scoped_refptr frame, - Task* task) = 0; + virtual void ConvertToVideoFrame(void* buffer, + scoped_refptr frame, + Task* task) = 0; // Destroy this context asynchronously. When the operation is done |task| // is called. It is safe to delete this object only after |task| is called. -- cgit v1.1