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

Side by Side Diff: media/gpu/ipc/client/gpu_video_encode_accelerator_host.h

Issue 1996453003: RTC Video Encoder: Use capturer timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_
6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void Send(IPC::Message* message); 88 void Send(IPC::Message* message);
89 89
90 // IPC handlers, proxying VideoEncodeAccelerator::Client for the GPU 90 // IPC handlers, proxying VideoEncodeAccelerator::Client for the GPU
91 // process. Should not be called directly. 91 // process. Should not be called directly.
92 void OnRequireBitstreamBuffers(uint32_t input_count, 92 void OnRequireBitstreamBuffers(uint32_t input_count,
93 const gfx::Size& input_coded_size, 93 const gfx::Size& input_coded_size,
94 uint32_t output_buffer_size); 94 uint32_t output_buffer_size);
95 void OnNotifyInputDone(int32_t frame_id); 95 void OnNotifyInputDone(int32_t frame_id);
96 void OnBitstreamBufferReady(int32_t bitstream_buffer_id, 96 void OnBitstreamBufferReady(int32_t bitstream_buffer_id,
97 uint32_t payload_size, 97 uint32_t payload_size,
98 bool key_frame); 98 bool key_frame,
99 base::TimeDelta timestamp);
99 void OnNotifyError(Error error); 100 void OnNotifyError(Error error);
100 101
101 scoped_refptr<gpu::GpuChannelHost> channel_; 102 scoped_refptr<gpu::GpuChannelHost> channel_;
102 103
103 // Route ID for the associated encoder in the GPU process. 104 // Route ID for the associated encoder in the GPU process.
104 int32_t encoder_route_id_; 105 int32_t encoder_route_id_;
105 106
106 // The client that will receive callbacks from the encoder. 107 // The client that will receive callbacks from the encoder.
107 Client* client_; 108 Client* client_;
108 109
(...skipping 12 matching lines...) Expand all
121 122
122 // WeakPtr factory for posting tasks back to itself. 123 // WeakPtr factory for posting tasks back to itself.
123 base::WeakPtrFactory<GpuVideoEncodeAcceleratorHost> weak_this_factory_; 124 base::WeakPtrFactory<GpuVideoEncodeAcceleratorHost> weak_this_factory_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorHost); 126 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorHost);
126 }; 127 };
127 128
128 } // namespace media 129 } // namespace media
129 130
130 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ 131 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « media/gpu/android_video_encode_accelerator.cc ('k') | media/gpu/ipc/client/gpu_video_encode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698