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 media::VideoPixelFormat format, |
76 uint32_t textures_per_buffer, | 77 uint32_t textures_per_buffer, |
77 const gfx::Size& dimensions, | 78 const gfx::Size& dimensions, |
78 uint32_t texture_target) override; | 79 uint32_t texture_target) override; |
79 void DismissPictureBuffer(int32_t picture_buffer_id) override; | 80 void DismissPictureBuffer(int32_t picture_buffer_id) override; |
80 void PictureReady(const media::Picture& picture) override; | 81 void PictureReady(const media::Picture& picture) override; |
81 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 82 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
82 void NotifyFlushDone() override; | 83 void NotifyFlushDone() override; |
83 void NotifyResetDone() override; | 84 void NotifyResetDone() override; |
84 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 85 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
85 | 86 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ppapi::host::ReplyMessageContext reset_reply_context_; | 147 ppapi::host::ReplyMessageContext reset_reply_context_; |
147 | 148 |
148 bool initialized_ = false; | 149 bool initialized_ = false; |
149 | 150 |
150 DISALLOW_COPY_AND_ASSIGN(PepperVideoDecoderHost); | 151 DISALLOW_COPY_AND_ASSIGN(PepperVideoDecoderHost); |
151 }; | 152 }; |
152 | 153 |
153 } // namespace content | 154 } // namespace content |
154 | 155 |
155 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ | 156 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DECODER_HOST_H_ |
OLD | NEW |