Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: content/renderer/pepper/pepper_video_encoder_host.h

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ENCODER_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
11 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
12 #include "media/video/video_encode_accelerator.h" 16 #include "media/video/video_encode_accelerator.h"
13 #include "ppapi/c/pp_codecs.h" 17 #include "ppapi/c/pp_codecs.h"
14 #include "ppapi/c/ppb_video_frame.h" 18 #include "ppapi/c/ppb_video_frame.h"
15 #include "ppapi/host/host_message_context.h" 19 #include "ppapi/host/host_message_context.h"
16 #include "ppapi/host/resource_host.h" 20 #include "ppapi/host/resource_host.h"
17 #include "ppapi/proxy/resource_message_params.h" 21 #include "ppapi/proxy/resource_message_params.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // the plugin and the host. 56 // the plugin and the host.
53 uint32_t id; 57 uint32_t id;
54 scoped_ptr<base::SharedMemory> shm; 58 scoped_ptr<base::SharedMemory> shm;
55 bool in_use; 59 bool in_use;
56 }; 60 };
57 61
58 // media::VideoEncodeAccelerator implementation. 62 // media::VideoEncodeAccelerator implementation.
59 void RequireBitstreamBuffers(unsigned int input_count, 63 void RequireBitstreamBuffers(unsigned int input_count,
60 const gfx::Size& input_coded_size, 64 const gfx::Size& input_coded_size,
61 size_t output_buffer_size) override; 65 size_t output_buffer_size) override;
62 void BitstreamBufferReady(int32 bitstream_buffer_id, 66 void BitstreamBufferReady(int32_t bitstream_buffer_id,
63 size_t payload_size, 67 size_t payload_size,
64 bool key_frame) override; 68 bool key_frame) override;
65 void NotifyError(media::VideoEncodeAccelerator::Error error) override; 69 void NotifyError(media::VideoEncodeAccelerator::Error error) override;
66 70
67 // ResourceHost implementation. 71 // ResourceHost implementation.
68 int32_t OnResourceMessageReceived( 72 int32_t OnResourceMessageReceived(
69 const IPC::Message& msg, 73 const IPC::Message& msg,
70 ppapi::host::HostMessageContext* context) override; 74 ppapi::host::HostMessageContext* context) override;
71 75
72 int32_t OnHostMsgGetSupportedProfiles( 76 int32_t OnHostMsgGetSupportedProfiles(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void AllocateVideoFrames(); 109 void AllocateVideoFrames();
106 void SendGetFramesErrorReply(int32_t error); 110 void SendGetFramesErrorReply(int32_t error);
107 scoped_refptr<media::VideoFrame> CreateVideoFrame( 111 scoped_refptr<media::VideoFrame> CreateVideoFrame(
108 uint32_t frame_id, 112 uint32_t frame_id,
109 const ppapi::host::ReplyMessageContext& reply_context); 113 const ppapi::host::ReplyMessageContext& reply_context);
110 void FrameReleased(const ppapi::host::ReplyMessageContext& reply_context, 114 void FrameReleased(const ppapi::host::ReplyMessageContext& reply_context,
111 uint32_t frame_id); 115 uint32_t frame_id);
112 void NotifyPepperError(int32_t error); 116 void NotifyPepperError(int32_t error);
113 117
114 // Helper method for VideoEncoderShim. 118 // Helper method for VideoEncoderShim.
115 uint8_t* ShmHandleToAddress(int32 buffer_id); 119 uint8_t* ShmHandleToAddress(int32_t buffer_id);
116 120
117 // Non-owning pointer. 121 // Non-owning pointer.
118 RendererPpapiHost* renderer_ppapi_host_; 122 RendererPpapiHost* renderer_ppapi_host_;
119 123
120 ScopedVector<ShmBuffer> shm_buffers_; 124 ScopedVector<ShmBuffer> shm_buffers_;
121 125
122 // Buffer manager for shared memory that holds video frames. 126 // Buffer manager for shared memory that holds video frames.
123 ppapi::MediaStreamBufferManager buffer_manager_; 127 ppapi::MediaStreamBufferManager buffer_manager_;
124 128
125 scoped_refptr<GpuChannelHost> channel_; 129 scoped_refptr<GpuChannelHost> channel_;
(...skipping 29 matching lines...) Expand all
155 media::VideoPixelFormat media_input_format_; 159 media::VideoPixelFormat media_input_format_;
156 160
157 base::WeakPtrFactory<PepperVideoEncoderHost> weak_ptr_factory_; 161 base::WeakPtrFactory<PepperVideoEncoderHost> weak_ptr_factory_;
158 162
159 DISALLOW_COPY_AND_ASSIGN(PepperVideoEncoderHost); 163 DISALLOW_COPY_AND_ASSIGN(PepperVideoEncoderHost);
160 }; 164 };
161 165
162 } // namespace content 166 } // namespace content
163 167
164 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_ 168 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_ENCODER_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_destination_host.cc ('k') | content/renderer/pepper/pepper_video_encoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698