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

Side by Side Diff: content/renderer/pepper_platform_video_decoder_impl.h

Issue 7065010: Add initialization callback support for Video Decoder PPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Delete TODO and bump up the ppb version 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 const std::vector<media::SysmemBuffer>& buffers) OVERRIDE; 36 const std::vector<media::SysmemBuffer>& buffers) OVERRIDE;
37 virtual void ReusePictureBuffer(int32 picture_buffer_id); 37 virtual void ReusePictureBuffer(int32 picture_buffer_id);
38 virtual bool Flush() OVERRIDE; 38 virtual bool Flush() OVERRIDE;
39 virtual bool Abort() OVERRIDE; 39 virtual bool Abort() OVERRIDE;
40 40
41 // VideoDecodeAccelerator::Client implementation. 41 // VideoDecodeAccelerator::Client implementation.
42 virtual void ProvidePictureBuffers( 42 virtual void ProvidePictureBuffers(
43 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; 43 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE;
44 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 44 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
45 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 45 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
46 virtual void NotifyInitializeDone() OVERRIDE;
46 virtual void NotifyEndOfStream() OVERRIDE; 47 virtual void NotifyEndOfStream() OVERRIDE;
47 virtual void NotifyError( 48 virtual void NotifyError(
48 media::VideoDecodeAccelerator::Error error) OVERRIDE; 49 media::VideoDecodeAccelerator::Error error) OVERRIDE;
49 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; 50 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
50 virtual void NotifyFlushDone() OVERRIDE; 51 virtual void NotifyFlushDone() OVERRIDE;
51 virtual void NotifyAbortDone() OVERRIDE; 52 virtual void NotifyAbortDone() OVERRIDE;
52 53
53 private: 54 private:
54 void InitializeDecoder(const std::vector<uint32>& configs); 55 void InitializeDecoder(const std::vector<uint32>& configs);
55 56
(...skipping 11 matching lines...) Expand all
67 68
68 // PlatformVideoDecoderImpl must extend RefCountedThreadSafe in order to post 69 // PlatformVideoDecoderImpl must extend RefCountedThreadSafe in order to post
69 // tasks on the IO loop. However, it is not actually ref counted: 70 // tasks on the IO loop. However, it is not actually ref counted:
70 // PPB_VideoDecode_Impl is the only thing that holds reference to 71 // PPB_VideoDecode_Impl is the only thing that holds reference to
71 // PlatformVideoDecoderImpl, so ref counting is unnecessary. 72 // PlatformVideoDecoderImpl, so ref counting is unnecessary.
72 // 73 //
73 // TODO(vrk): Not sure if this is the right thing to do. Talk with fischman. 74 // TODO(vrk): Not sure if this is the right thing to do. Talk with fischman.
74 DISABLE_RUNNABLE_METHOD_REFCOUNT(PlatformVideoDecoderImpl); 75 DISABLE_RUNNABLE_METHOD_REFCOUNT(PlatformVideoDecoderImpl);
75 76
76 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 77 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698