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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 782583003: List sync points to wait on in AsyncFlush message Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 IPC::Message* reply_message); 160 IPC::Message* reply_message);
161 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); 161 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
162 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox); 162 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox);
163 void OnGetState(IPC::Message* reply_message); 163 void OnGetState(IPC::Message* reply_message);
164 void OnWaitForTokenInRange(int32 start, 164 void OnWaitForTokenInRange(int32 start,
165 int32 end, 165 int32 end,
166 IPC::Message* reply_message); 166 IPC::Message* reply_message);
167 void OnWaitForGetOffsetInRange(int32 start, 167 void OnWaitForGetOffsetInRange(int32 start,
168 int32 end, 168 int32 end,
169 IPC::Message* reply_message); 169 IPC::Message* reply_message);
170 void OnAsyncFlush(int32 put_offset, uint32 flush_count, 170 void OnAsyncFlush(int32 put_offset,
171 uint32 flush_count,
172 const std::vector<uint32>& sync_points,
171 const std::vector<ui::LatencyInfo>& latency_info); 173 const std::vector<ui::LatencyInfo>& latency_info);
172 void OnRescheduled(); 174 void OnRescheduled();
173 void OnRegisterTransferBuffer(int32 id, 175 void OnRegisterTransferBuffer(int32 id,
174 base::SharedMemoryHandle transfer_buffer, 176 base::SharedMemoryHandle transfer_buffer,
175 uint32 size); 177 uint32 size);
176 void OnDestroyTransferBuffer(int32 id); 178 void OnDestroyTransferBuffer(int32 id);
177 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 179 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
178 180
179 void OnCreateVideoDecoder(media::VideoCodecProfile profile, 181 void OnCreateVideoDecoder(media::VideoCodecProfile profile,
180 int32 route_id, 182 int32 route_id,
181 IPC::Message* reply_message); 183 IPC::Message* reply_message);
182 void OnCreateVideoEncoder(media::VideoFrame::Format input_format, 184 void OnCreateVideoEncoder(media::VideoFrame::Format input_format,
183 const gfx::Size& input_visible_size, 185 const gfx::Size& input_visible_size,
184 media::VideoCodecProfile output_profile, 186 media::VideoCodecProfile output_profile,
185 uint32 initial_bitrate, 187 uint32 initial_bitrate,
186 int32 route_id, 188 int32 route_id,
187 IPC::Message* reply_message); 189 IPC::Message* reply_message);
188 190
189 void OnSetSurfaceVisible(bool visible); 191 void OnSetSurfaceVisible(bool visible);
190 192
191 void OnEnsureBackbuffer(); 193 void OnEnsureBackbuffer();
192 194
193 void OnRetireSyncPoint(uint32 sync_point); 195 void OnRetireSyncPoint(uint32 sync_point);
194 bool OnWaitSyncPoint(uint32 sync_point); 196 void WaitSyncPoint(uint32 sync_point);
195 void OnSyncPointRetired(); 197 void OnSyncPointRetired();
196 void OnSignalSyncPoint(uint32 sync_point, uint32 id); 198 void OnSignalSyncPoint(uint32 sync_point, uint32 id);
197 void OnSignalSyncPointAck(uint32 id); 199 void OnSignalSyncPointAck(uint32 id);
198 void OnSignalQuery(uint32 query, uint32 id); 200 void OnSignalQuery(uint32 query, uint32 id);
199 201
200 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); 202 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
201 203
202 void OnCreateImage(int32 id, 204 void OnCreateImage(int32 id,
203 gfx::GpuMemoryBufferHandle handle, 205 gfx::GpuMemoryBufferHandle handle,
204 gfx::Size size, 206 gfx::Size size,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 size_t total_gpu_memory_; 281 size_t total_gpu_memory_;
280 scoped_ptr<WaitForCommandState> wait_for_token_; 282 scoped_ptr<WaitForCommandState> wait_for_token_;
281 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 283 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
282 284
283 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 285 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
284 }; 286 };
285 287
286 } // namespace content 288 } // namespace content
287 289
288 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 290 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698