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