| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PPB_VIDEO_DECODER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 scoped_refptr<ppapi::TrackedCallback> callback) override; | 38 scoped_refptr<ppapi::TrackedCallback> callback) override; |
| 39 void AssignPictureBuffers(uint32_t no_of_buffers, | 39 void AssignPictureBuffers(uint32_t no_of_buffers, |
| 40 const PP_PictureBuffer_Dev* buffers) override; | 40 const PP_PictureBuffer_Dev* buffers) override; |
| 41 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 41 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 42 int32_t Flush(scoped_refptr<ppapi::TrackedCallback> callback) override; | 42 int32_t Flush(scoped_refptr<ppapi::TrackedCallback> callback) override; |
| 43 int32_t Reset(scoped_refptr<ppapi::TrackedCallback> callback) override; | 43 int32_t Reset(scoped_refptr<ppapi::TrackedCallback> callback) override; |
| 44 void Destroy() override; | 44 void Destroy() override; |
| 45 | 45 |
| 46 // media::VideoDecodeAccelerator::Client implementation. | 46 // media::VideoDecodeAccelerator::Client implementation. |
| 47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 48 uint32_t textures_per_buffer, |
| 48 const gfx::Size& dimensions, | 49 const gfx::Size& dimensions, |
| 49 uint32_t texture_target) override; | 50 uint32_t texture_target) override; |
| 50 void DismissPictureBuffer(int32_t picture_buffer_id) override; | 51 void DismissPictureBuffer(int32_t picture_buffer_id) override; |
| 51 void PictureReady(const media::Picture& picture) override; | 52 void PictureReady(const media::Picture& picture) override; |
| 52 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 53 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
| 53 void NotifyFlushDone() override; | 54 void NotifyFlushDone() override; |
| 54 void NotifyEndOfBitstreamBuffer(int32_t buffer_id) override; | 55 void NotifyEndOfBitstreamBuffer(int32_t buffer_id) override; |
| 55 void NotifyResetDone() override; | 56 void NotifyResetDone() override; |
| 56 | 57 |
| 57 private: | 58 private: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 74 // The interface to use when making calls on the plugin. For the most part, | 75 // The interface to use when making calls on the plugin. For the most part, |
| 75 // methods should not use this directly but should call GetPPP() instead. | 76 // methods should not use this directly but should call GetPPP() instead. |
| 76 const PPP_VideoDecoder_Dev* ppp_videodecoder_; | 77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace content | 82 } // namespace content |
| 82 | 83 |
| 83 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ | 84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |