| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 virtual void AssignGLESBuffers( | 33 virtual void AssignGLESBuffers( |
| 34 const std::vector<media::GLESBuffer>& buffers) OVERRIDE; | 34 const std::vector<media::GLESBuffer>& buffers) OVERRIDE; |
| 35 virtual void AssignSysmemBuffers( | 35 virtual void AssignSysmemBuffers( |
| 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, | 43 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; |
| 44 const gfx::Size& dimensions, | |
| 45 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; | |
| 46 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 44 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 47 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 45 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 48 virtual void NotifyEndOfStream() OVERRIDE; | 46 virtual void NotifyEndOfStream() OVERRIDE; |
| 49 virtual void NotifyError( | 47 virtual void NotifyError( |
| 50 media::VideoDecodeAccelerator::Error error) OVERRIDE; | 48 media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 51 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; | 49 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; |
| 52 virtual void NotifyFlushDone() OVERRIDE; | 50 virtual void NotifyFlushDone() OVERRIDE; |
| 53 virtual void NotifyAbortDone() OVERRIDE; | 51 virtual void NotifyAbortDone() OVERRIDE; |
| 54 | 52 |
| 55 private: | 53 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 69 | 67 |
| 70 // PlatformVideoDecoderImpl must extend RefCountedThreadSafe in order to post | 68 // PlatformVideoDecoderImpl must extend RefCountedThreadSafe in order to post |
| 71 // tasks on the IO loop. However, it is not actually ref counted: | 69 // tasks on the IO loop. However, it is not actually ref counted: |
| 72 // PPB_VideoDecode_Impl is the only thing that holds reference to | 70 // PPB_VideoDecode_Impl is the only thing that holds reference to |
| 73 // PlatformVideoDecoderImpl, so ref counting is unnecessary. | 71 // PlatformVideoDecoderImpl, so ref counting is unnecessary. |
| 74 // | 72 // |
| 75 // TODO(vrk): Not sure if this is the right thing to do. Talk with fischman. | 73 // TODO(vrk): Not sure if this is the right thing to do. Talk with fischman. |
| 76 DISABLE_RUNNABLE_METHOD_REFCOUNT(PlatformVideoDecoderImpl); | 74 DISABLE_RUNNABLE_METHOD_REFCOUNT(PlatformVideoDecoderImpl); |
| 77 | 75 |
| 78 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ | 76 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |