| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_PEPPER_VIDEO_DECODER_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 friend class VideoDecoderShim; | 67 friend class VideoDecoderShim; |
| 68 | 68 |
| 69 // ResourceHost implementation. | 69 // ResourceHost implementation. |
| 70 int32_t OnResourceMessageReceived( | 70 int32_t OnResourceMessageReceived( |
| 71 const IPC::Message& msg, | 71 const IPC::Message& msg, |
| 72 ppapi::host::HostMessageContext* context) override; | 72 ppapi::host::HostMessageContext* context) override; |
| 73 | 73 |
| 74 // media::VideoDecodeAccelerator::Client implementation. | 74 // media::VideoDecodeAccelerator::Client implementation. |
| 75 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 75 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 76 uint32_t textures_per_buffer, |
| 76 const gfx::Size& dimensions, | 77 const gfx::Size& dimensions, |
| 77 uint32_t texture_target) override; | 78 uint32_t texture_target) override; |
| 78 void DismissPictureBuffer(int32_t picture_buffer_id) override; | 79 void DismissPictureBuffer(int32_t picture_buffer_id) override; |
| 79 void PictureReady(const media::Picture& picture) override; | 80 void PictureReady(const media::Picture& picture) override; |
| 80 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 81 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
| 81 void NotifyFlushDone() override; | 82 void NotifyFlushDone() override; |
| 82 void NotifyResetDone() override; | 83 void NotifyResetDone() override; |
| 83 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 84 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
| 84 | 85 |
| 85 int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context, | 86 int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 ppapi::host::ReplyMessageContext reset_reply_context_; | 146 ppapi::host::ReplyMessageContext reset_reply_context_; |
| 146 | 147 |
| 147 bool initialized_ = false; | 148 bool initialized_ = false; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(PepperVideoDecoderHost); | 150 DISALLOW_COPY_AND_ASSIGN(PepperVideoDecoderHost); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace content | 153 } // namespace content |
| 153 | 154 |
| 154 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ | 155 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ |
| OLD | NEW |